#AF2F9D#AF2F9D
#AF2F9D is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.1% C 0.201 H 334.4°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).
Color values
| HEX | #AF2F9D |
|---|---|
| RGB | rgb(175, 47, 157) |
| HSL | hsl(308, 58%, 44%) |
| HSV | hsv(308, 73%, 69%) |
| CMYK | cmyk(0%, 73.1%, 10.3%, 31.4%) |
| CIE-LAB | lab(43.63, 62.40, -31.82) |
| CIE-LCH | lch(43.63, 70.04, 332.98°) |
| OKLab | oklab(54.06% 0.1814 -0.087) |
| OKLCH | oklch(54.06% 0.201 334.4) |
| XYZ | xyz(24.7818, 13.5835, 33.2084) |
| Luminance | 0.1358 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.20
Medium Purple
#9E43A2
ΔE00 4.16
Warm Purple
#952E8F
ΔE00 5.26
Barney
#AC1DB8
ΔE00 5.57
Barney Purple
#A00498
ΔE00 5.88
Purply
#983FB2
ΔE00 6.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF2F9D #2FAF41
analogous
#812FAF #AF2F9D #AF2F5D
triadic
#AF2F9D #9DAF2F #2F9DAF
tetradic
#AF2F9D #AF812F #2FAF41 #2F5DAF
square
#AF2F9D #AF812F #2FAF41 #2F5DAF
split-complementary
#AF2F9D #5DAF2F #2FAF81
monochromatic
#4F1546 #7F2272 #AF2F9D #CF4CBD #DC7CCF
Accessibility & contrast
On white
5.65
#AF2F9D on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.72
#AF2F9D on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF2F9D
5.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF2F9D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF2F9D | 1.00 | 5.65 | 3.72 | 5.65 |
| #FFFFFF | 5.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2D5BA0
Deuteranopia (green-blind)
#5B6E9A
Tritanopia (blue-blind)
#B73A63
Achromatopsia (no color)
#676767
Design tokens & code
CSS
--color: #af2f9d; /* rgb */ color: rgb(175, 47, 157); /* oklch */ color: oklch(54.1% 0.201 334.4);
Tailwind
colors: {
custom: {
50: '#cb74ba',
500: '#af2f9d',
950: '#000000',
},
}SCSS
$custom: #af2f9d; $custom-light: #cb74ba; $custom-dark: #000000;
JSON
{
"hex": "#af2f9d",
"rgb": {
"r": 175,
"g": 47,
"b": 157
},
"hsl": {
"h": 308.438,
"s": 57.658,
"l": 43.529
},
"oklch": {
"l": 0.54063,
"c": 0.2012,
"h": 334.4
},
"luminance": 0.13581
}Semantic roles & 50–950 ramp
primary
#AF2F9D
secondary
#75C480
accent
#E15D47
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80