#AF2B9D#AF2B9D
#AF2B9D is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 53.7% C 0.205 H 334.3°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).
Color values
| HEX | #AF2B9D |
|---|---|
| RGB | rgb(175, 43, 157) |
| HSL | hsl(308, 61%, 43%) |
| HSV | hsv(308, 75%, 69%) |
| CMYK | cmyk(0%, 75.4%, 10.3%, 31.4%) |
| CIE-LAB | lab(43.18, 63.68, -32.52) |
| CIE-LCH | lch(43.18, 71.51, 332.95°) |
| OKLab | oklab(53.74% 0.1852 -0.0891) |
| OKLCH | oklch(53.74% 0.205 334.3) |
| XYZ | xyz(24.6291, 13.2782, 33.1576) |
| Luminance | 0.1328 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.57
Medium Purple
#9E43A2
ΔE00 4.41
Warm Purple
#952E8F
ΔE00 5.03
Barney
#AC1DB8
ΔE00 5.32
Barney Purple
#A00498
ΔE00 5.39
Purply
#983FB2
ΔE00 6.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF2B9D #2BAF3D
analogous
#7F2BAF #AF2B9D #AF2B5B
triadic
#AF2B9D #9DAF2B #2B9DAF
tetradic
#AF2B9D #AF7F2B #2BAF3D #2B5BAF
square
#AF2B9D #AF7F2B #2BAF3D #2B5BAF
split-complementary
#AF2B9D #5BAF2B #2BAF7F
monochromatic
#4D1345 #7E1F71 #AF2B9D #D146BE #DE77D0
Accessibility & contrast
On white
5.75
#AF2B9D on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.66
#AF2B9D on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF2B9D
5.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF2B9D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF2B9D | 1.00 | 5.75 | 3.66 | 5.75 |
| #FFFFFF | 5.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#285AA0
Deuteranopia (green-blind)
#5A6D9A
Tritanopia (blue-blind)
#B73762
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #af2b9d; /* rgb */ color: rgb(175, 43, 157); /* oklch */ color: oklch(53.7% 0.205 334.3);
Tailwind
colors: {
custom: {
50: '#cb73ba',
500: '#af2b9d',
950: '#000000',
},
}SCSS
$custom: #af2b9d; $custom-light: #cb73ba; $custom-dark: #000000;
JSON
{
"hex": "#af2b9d",
"rgb": {
"r": 175,
"g": 43,
"b": 157
},
"hsl": {
"h": 308.182,
"s": 60.55,
"l": 42.745
},
"oklch": {
"l": 0.5374,
"c": 0.20547,
"h": 334.3
},
"luminance": 0.13276
}Semantic roles & 50–950 ramp
primary
#AF2B9D
secondary
#70C57C
accent
#E45A44
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80