#AF38D9#AF38D9
#AF38D9 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.4% C 0.240 H 315.5°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).
Color values
| HEX | #AF38D9 |
|---|---|
| RGB | rgb(175, 56, 217) |
| HSL | hsl(284, 68%, 54%) |
| HSV | hsv(284, 74%, 85%) |
| CMYK | cmyk(19.4%, 74.2%, 0%, 14.9%) |
| CIE-LAB | lab(48.20, 69.71, -59.62) |
| CIE-LCH | lch(48.20, 91.73, 319.46°) |
| OKLab | oklab(58.45% 0.1708 -0.1681) |
| OKLCH | oklch(58.45% 0.24 315.5) |
| XYZ | xyz(31.6157, 16.9533, 67.2391) |
| Luminance | 0.1695 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Vibrant Purple
#AD03DE
ΔE00 4.41
Bright Purple
#BE03FD
ΔE00 4.82
Neon Purple
#BC13FE
ΔE00 4.82
Darkorchid
#9932CC
ΔE00 4.88
Hot Purple
#CB00F5
ΔE00 5.02
Lightish Purple
#A552E6
ΔE00 5.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF38D9 #62D938
analogous
#5E38D9 #AF38D9 #D938B2
triadic
#AF38D9 #D9AF38 #38D9AF
tetradic
#AF38D9 #D95E38 #62D938 #38B2D9
square
#AF38D9 #D95E38 #62D938 #38B2D9
split-complementary
#AF38D9 #B2D938 #38D95E
monochromatic
#64187E #8C22B2 #AF38D9 #C46BE3 #D89FED
Accessibility & contrast
On white
4.78
#AF38D9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.39
#AF38D9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF38D9
4.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF38D9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF38D9 | 1.00 | 4.78 | 4.39 | 4.78 |
| #FFFFFF | 4.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006CDD
Deuteranopia (green-blind)
#3376D6
Tritanopia (blue-blind)
#AC5B86
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #af38d9; /* rgb */ color: rgb(175, 56, 217); /* oklch */ color: oklch(58.4% 0.240 315.5);
Tailwind
colors: {
custom: {
50: '#cb7ae6',
500: '#af38d9',
950: '#000000',
},
}SCSS
$custom: #af38d9; $custom-light: #cb7ae6; $custom-dark: #000000;
JSON
{
"hex": "#af38d9",
"rgb": {
"r": 175,
"g": 56,
"b": 217
},
"hsl": {
"h": 284.348,
"s": 67.932,
"l": 53.529
},
"oklch": {
"l": 0.58448,
"c": 0.23965,
"h": 315.5
},
"luminance": 0.16952
}Semantic roles & 50–950 ramp
primary
#AF38D9
secondary
#A6D994
accent
#EB3D6A
background
#FDF7FE
surface
#FAEEFC
border
#D3C9D5
text
#140A16
muted
#837C84