#AF2F9B#AF2F9B
#AF2F9B is a mid, vivid purple. Relative luminance 0.135; OKLCH L 54.0% C 0.200 H 335.1°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).
Color values
| HEX | #AF2F9B |
|---|---|
| RGB | rgb(175, 47, 155) |
| HSL | hsl(309, 58%, 44%) |
| HSV | hsv(309, 73%, 69%) |
| CMYK | cmyk(0%, 73.1%, 11.4%, 31.4%) |
| CIE-LAB | lab(43.53, 62.10, -30.77) |
| CIE-LCH | lch(43.53, 69.30, 333.64°) |
| OKLab | oklab(53.96% 0.1812 -0.084) |
| OKLCH | oklch(53.96% 0.2 335.1) |
| XYZ | xyz(24.6124, 13.5157, 32.3165) |
| Luminance | 0.1351 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.34
Medium Purple
#9E43A2
ΔE00 4.36
Warm Purple
#952E8F
ΔE00 5.23
Barney
#AC1DB8
ΔE00 5.93
Barney Purple
#A00498
ΔE00 5.94
Purply
#983FB2
ΔE00 7.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF2F9B #2FAF43
analogous
#832FAF #AF2F9B #AF2F5B
triadic
#AF2F9B #9BAF2F #2F9BAF
tetradic
#AF2F9B #AF832F #2FAF43 #2F5BAF
square
#AF2F9B #AF832F #2FAF43 #2F5BAF
split-complementary
#AF2F9B #5BAF2F #2FAF83
monochromatic
#4F1546 #7F2270 #AF2F9B #CF4CBB #DC7CCD
Accessibility & contrast
On white
5.67
#AF2F9B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.70
#AF2F9B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF2F9B
5.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF2F9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF2F9B | 1.00 | 5.67 | 3.70 | 5.67 |
| #FFFFFF | 5.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2F5B9E
Deuteranopia (green-blind)
#5C6E98
Tritanopia (blue-blind)
#B83962
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #af2f9b; /* rgb */ color: rgb(175, 47, 155); /* oklch */ color: oklch(54.0% 0.200 335.1);
Tailwind
colors: {
custom: {
50: '#cb74b9',
500: '#af2f9b',
950: '#000000',
},
}SCSS
$custom: #af2f9b; $custom-light: #cb74b9; $custom-dark: #000000;
JSON
{
"hex": "#af2f9b",
"rgb": {
"r": 175,
"g": 47,
"b": 155
},
"hsl": {
"h": 309.375,
"s": 57.658,
"l": 43.529
},
"oklch": {
"l": 0.5396,
"c": 0.19976,
"h": 335.1
},
"luminance": 0.13514
}Semantic roles & 50–950 ramp
primary
#AF2F9B
secondary
#75C482
accent
#E15F47
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80