Violet
#AFA8FF
#AFA8FF is a violet with medium intensity, at step 300 of its 50–950 scale. Dark text on it has a contrast of 8.9:1. On white it reaches only 2.1:1, so use a darker shade for text.
#AFA8FF shades and tints
Eleven steps from 50 to 950 with #AFA8FF kept exactly at step 300. Lightness steps are even to the eye, and intensity tapers toward the lightest and darkest steps.
- 50 F6F6FF
- 100 E9E9FF
- 200 D6D4FF
- 300 AFA8FF
- 400 9E97EA
- 500 837BCE
- 600 6960B0
- 700 524892
- 800 3D3375
- 900 2A2058
- 950 180E3B
Tailwind CSS v4 theme
@theme { --color-violet-50: #f6f6ff; --color-violet-100: #e9e9ff; --color-violet-200: #d6d4ff; --color-violet-300: #afa8ff; --color-violet-400: #9e97ea; --color-violet-500: #837bce; --color-violet-600: #6960b0; --color-violet-700: #524892; --color-violet-800: #3d3375; --color-violet-900: #2a2058; --color-violet-950: #180e3b;}Is #AFA8FF readable?
Contrast for text on #AFA8FF and for #AFA8FF used as text. WCAG 2.2 asks for 4.5:1 for body text and 3:1 for large text; APCA Lc rates how comfortable the text is to read.
- AaThe quick brown foxCheck in contrast tool
White text on it
Fail · 2.1APCA Lc 46 · Large text and headings
- AaThe quick brown foxCheck in contrast tool
Dark text on it
AAA · 8.9APCA Lc 62 · Content text 16px and up
- AaThe quick brown foxClosest readable: #756CBE · 4.5:1 Check in contrast tool
As text on white
Fail · 2.1APCA Lc 42 · Placeholders and disabled text
- AaThe quick brown foxCheck in contrast tool
As text on a dark background
AAA · 8.9APCA Lc 60 · Content text 16px and up
Color palettes with #AFA8FF
Six palettes built around #AFA8FF, each starting from the exact color. Open one in the palette tool to adjust it or get more options.
- Analogous#AFA8FF · #AA72C7 · #369DFF · #FFD6ED · #2F3041
- Complementary#AFA8FF · #C3B16C · #CEAF2D · #E0E1FF · #23242D
- Split complementary#AFA8FF · #D5A965 · #89CB21 · #E9E7FF · #2C2938
- Triadic#AFA8FF · #D17F47 · #30D6A5 · #D5CFFF · #292833
- Tetradic#AFA8FF · #D48A92 · #D0AF07 · #8EF4ED · #2F2D36
- Monochromatic#AFA8FF · #8D92D7 · #B1ADFF · #E9E5FF · #262630
#AFA8FF as a brand color
What a UI color system built from #AFA8FF looks like: brand, neutral and status scales, with light and dark tokens that pass WCAG.
Brand
- Brand 50, #F6F6FF
- Brand 100, #E9E9FF
- Brand 200, #D6D4FF
- Brand 300, #AFA8FF
- Brand 400, #9E97EA
- Brand 500, #837BCE
- Brand 600, #6960B0
- Brand 700, #524892
- Brand 800, #3D3375
- Brand 900, #2A2058
- Brand 950, #180E3B
Neutral
- Neutral 50, #FAFAFB
- Neutral 100, #F4F4F6
- Neutral 200, #E5E5E8
- Neutral 300, #D4D3D9
- Neutral 400, #A0A0A8
- Neutral 500, #72727B
- Neutral 600, #53535B
- Neutral 700, #403F47
- Neutral 800, #27272E
- Neutral 900, #17171D
- Neutral 950, #0A090F
Success
- Success 50, #E3FFEE
- Success 100, #B4FFD6
- Success 200, #92F1BF
- Success 300, #6DD8A3
- Success 400, #43BD85
- Success 500, #23AB73
- Success 600, #008254
- Success 700, #006641
- Success 800, #004D30
- Success 900, #003520
- Success 950, #001F10
Warning
- Warning 50, #FFF5EB
- Warning 100, #FFE7CD
- Warning 200, #FFCF9D
- Warning 300, #EEA245
- Warning 400, #DA9136
- Warning 500, #BD7500
- Warning 600, #995E00
- Warning 700, #784900
- Warning 800, #5B3600
- Warning 900, #402400
- Warning 950, #261300
Danger
- Danger 50, #FFF4F3
- Danger 100, #FFE4E2
- Danger 200, #FFCAC7
- Danger 300, #FFA29F
- Danger 400, #FE6F70
- Danger 500, #DA4A4F
- Danger 600, #BF303B
- Danger 700, #9F1125
- Danger 800, #7C0017
- Danger 900, #58000E
- Danger 950, #360005
Info
- Info 50, #F2F7FF
- Info 100, #DFEDFF
- Info 200, #C0DCFF
- Info 300, #93C3FF
- Info 400, #6AA6F1
- Info 500, #4B88D3
- Info 600, #326EB7
- Info 700, #1B5598
- Info 800, #063F7B
- Info 900, #002A59
- Info 950, #001737
- Primary buttons use Brand 300 with neutral 950 text, at 9.3:1.
- In dark mode primary stays Brand 300: it already reads on the dark background at 9.3:1.
- Neutrals carry a hint of its hue, so grays, borders and surfaces feel related to the brand.
- Success, warning, danger and info lean toward its hue and stay easy to tell apart.
Colors related to #AFA8FF
Lighter and darker versions, its complementary color, neighbors on the color wheel and softer variants.