#AF319D#AF319D
#AF319D is a mid, vivid purple. Relative luminance 0.137; OKLCH L 54.2% C 0.199 H 334.4°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).
Color values
| HEX | #AF319D |
|---|---|
| RGB | rgb(175, 49, 157) |
| HSL | hsl(309, 56%, 44%) |
| HSV | hsv(309, 72%, 69%) |
| CMYK | cmyk(0%, 72%, 10.3%, 31.4%) |
| CIE-LAB | lab(43.87, 61.72, -31.44) |
| CIE-LCH | lch(43.87, 69.27, 333.01°) |
| OKLab | oklab(54.24% 0.1794 -0.086) |
| OKLCH | oklch(54.24% 0.199 334.4) |
| XYZ | xyz(24.8635, 13.7470, 33.2357) |
| Luminance | 0.1374 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.02
Medium Purple
#9E43A2
ΔE00 4.06
Warm Purple
#952E8F
ΔE00 5.40
Barney
#AC1DB8
ΔE00 5.72
Barney Purple
#A00498
ΔE00 6.14
Purply
#983FB2
ΔE00 6.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF319D #31AF43
analogous
#8231AF #AF319D #AF315E
triadic
#AF319D #9DAF31 #319DAF
tetradic
#AF319D #AF8231 #31AF43 #315EAF
square
#AF319D #AF8231 #31AF43 #315EAF
split-complementary
#AF319D #5EAF31 #31AF82
monochromatic
#4F1647 #7F2472 #AF319D #CE4FBC #DB7FCE
Accessibility & contrast
On white
5.60
#AF319D on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.75
#AF319D on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF319D
5.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF319D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF319D | 1.00 | 5.60 | 3.75 | 5.60 |
| #FFFFFF | 5.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2F5CA0
Deuteranopia (green-blind)
#5C6E9A
Tritanopia (blue-blind)
#B73C63
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #af319d; /* rgb */ color: rgb(175, 49, 157); /* oklch */ color: oklch(54.2% 0.199 334.4);
Tailwind
colors: {
custom: {
50: '#ca75ba',
500: '#af319d',
950: '#000000',
},
}SCSS
$custom: #af319d; $custom-light: #ca75ba; $custom-dark: #000000;
JSON
{
"hex": "#af319d",
"rgb": {
"r": 175,
"g": 49,
"b": 157
},
"hsl": {
"h": 308.571,
"s": 56.25,
"l": 43.922
},
"oklch": {
"l": 0.54235,
"c": 0.19893,
"h": 334.4
},
"luminance": 0.13745
}Semantic roles & 50–950 ramp
primary
#AF319D
secondary
#78C483
accent
#E05E48
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140911
muted
#827B80