#AF38C7
Closest named color: Dark Orchid (#9932CC). oklch(57.3% 0.224 320.3), rgb(175, 56, 199).
Aa
White text reads best on this color (4.98:1).
About this color
#AF38C7 is a medium-dark, vivid purple. In OKLCH its lightness is 57%, its chroma 0.224 and its hue 320°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Dark Orchid (#9932CC), ΔE 0.047 away. White text reads best on it, at 4.98:1.
| Hue family | Purples |
| Lightness | medium-dark (57%) |
| Chroma | vivid (0.224) |
| Temperature | in between |
| Nearest name | Dark Orchid (#9932CC) |
| Black text | 4.21:1 |
| White text | 4.98:1 |
Values
| HEX | #AF38C7 |
| RGB | rgb(175, 56, 199) |
| HSL | hsl(290, 56%, 50%) |
| OKLCH | oklch(57.3% 0.224 320.3) |
Contrast
WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.
| Pair | WCAG 2 | Result | APCA | APCA guidance |
|---|---|---|---|---|
| White text on #AF38C7 | 4.98:1 | AA | Lc -78.8 | Fine for body text |
| Black text on #AF38C7 | 4.21:1 | AA large text | Lc 30.7 | Non-text elements, placeholder text |
| #AF38C7 text on white | 4.98:1 | AA | Lc 73.4 | Content text, not long reading |
| #AF38C7 text on black | 4.21:1 | AA large text | Lc -28.3 | Dividers and decoration only |
Tints and shades
A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 600.
-
Step 50
50
#FAF3FB
oklch(97.2% 0.013 321.9)
-
Step 100
100
#F3E4F6
oklch(93.6% 0.029 320.6)
-
Step 200
200
#EACEF0
oklch(88.5% 0.055 320.3)
-
Step 300
300
#DEABE9
oklch(80.8% 0.102 320.3)
-
Step 400
400
#CC7CDE
oklch(70.7% 0.161 320.1)
-
Step 500
500
#BE55D4
oklch(63.1% 0.205 320.4)
-
Step 600
600 (this color)
#AF38C7
oklch(57.3% 0.224 320.3)
-
Step 700
700
#9122A7
oklch(49.1% 0.208 320.2)
-
Step 800
800
#761F87
oklch(42.6% 0.173 320.5)
-
Step 900
900
#5F216C
oklch(37.6% 0.135 320.2)
-
Step 950
950
#38153F
oklch(27% 0.085 320.7)
#AF38C7 with color blindness
Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.
| Vision | Seen as | Shift (ΔE) |
|---|---|---|
| Protanopia (no red cones) | #0067CB | 0.224 |
| Deuteranopia (no green cones) | #4674C4 | 0.195 |
| Tritanopia (no blue cones) | #B0537C | 0.137 |
| Achromatopsia (no color) | #707070 | 0.226 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #AF38C7
#AF38C7
oklch(57.3% 0.224 320.3)
- #279000
#279000
oklch(57.2% 0.185 140.3)
Analogous
Neighbouring hues, 30° either side.
Split complementary
The two hues beside the complement (150° and 210°).
Triadic
Three hues spaced 120° apart.
Palettes with this color
Curated palettes that contain a color within ΔE 0.04 (OKLab) of #AF38C7, closest first.
No curated palette has a color within ΔE 0.04 of #AF38C7.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Dark Orchid #9932CC ΔE 0.047
- Purply #983FB2 ΔE 0.053
- Vibrant Purple #AD03DE ΔE 0.057
- Purpley Pink #C83CB9 ΔE 0.057
- Medium Orchid #BA55D3 ΔE 0.057
- Pinky Purple #C94CBE ΔE 0.068
- Amethyst #9B5FC0 ΔE 0.079
- Dark Violet #9400D3 ΔE 0.081
Use #AF38C7 in your product
Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.