#AF399F#AF399F
#AF399F is a mid, vivid purple. Relative luminance 0.145; OKLCH L 55.1% C 0.191 H 333.7°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).
Color values
| HEX | #AF399F |
|---|---|
| RGB | rgb(175, 57, 159) |
| HSL | hsl(308, 51%, 45%) |
| HSV | hsv(308, 67%, 69%) |
| CMYK | cmyk(0%, 67.4%, 9.1%, 31.4%) |
| CIE-LAB | lab(45.01, 59.11, -30.86) |
| CIE-LCH | lch(45.01, 66.68, 332.43°) |
| OKLab | oklab(55.09% 0.171 -0.0844) |
| OKLCH | oklch(55.09% 0.191 333.7) |
| XYZ | xyz(25.4005, 14.5455, 34.2639) |
| Luminance | 0.1454 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 2.30
Medium Purple
#9E43A2
ΔE00 3.60
Warm Purple
#952E8F
ΔE00 6.17
Barney
#AC1DB8
ΔE00 6.19
Purpley Pink
#C83CB9
ΔE00 6.19
Purply
#983FB2
ΔE00 6.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF399F #39AF49
analogous
#8439AF #AF399F #AF3964
triadic
#AF399F #9FAF39 #399FAF
tetradic
#AF399F #AF8439 #39AF49 #3964AF
square
#AF399F #AF8439 #39AF49 #3964AF
split-complementary
#AF399F #64AF39 #39AF84
monochromatic
#531B4B #812A75 #AF399F #CA5BBB #D98ACE
Accessibility & contrast
On white
5.37
#AF399F on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.91
#AF399F on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF399F
5.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF399F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF399F | 1.00 | 5.37 | 3.91 | 5.37 |
| #FFFFFF | 5.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#365FA2
Deuteranopia (green-blind)
#5F719C
Tritanopia (blue-blind)
#B74367
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #af399f; /* rgb */ color: rgb(175, 57, 159); /* oklch */ color: oklch(55.1% 0.191 333.7);
Tailwind
colors: {
custom: {
50: '#ca79bb',
500: '#af399f',
950: '#000000',
},
}SCSS
$custom: #af399f; $custom-light: #ca79bb; $custom-dark: #000000;
JSON
{
"hex": "#af399f",
"rgb": {
"r": 175,
"g": 57,
"b": 159
},
"hsl": {
"h": 308.136,
"s": 50.862,
"l": 45.49
},
"oklch": {
"l": 0.5509,
"c": 0.19068,
"h": 333.7
},
"luminance": 0.14543
}Semantic roles & 50–950 ramp
primary
#AF399F
secondary
#81C38A
accent
#DA614D
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A12
muted
#827C81