#AF339E#AF339E
#AF339E is a mid, vivid purple. Relative luminance 0.140; OKLCH L 54.5% C 0.197 H 334.0°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).
Color values
| HEX | #AF339E |
|---|---|
| RGB | rgb(175, 51, 158) |
| HSL | hsl(308, 55%, 44%) |
| HSV | hsv(308, 71%, 69%) |
| CMYK | cmyk(0%, 70.9%, 9.7%, 31.4%) |
| CIE-LAB | lab(44.16, 61.18, -31.58) |
| CIE-LCH | lch(44.16, 68.85, 332.70°) |
| OKLab | oklab(54.47% 0.1774 -0.0864) |
| OKLCH | oklch(54.47% 0.197 334) |
| XYZ | xyz(25.0348, 13.9523, 33.7157) |
| Luminance | 0.1395 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 2.78
Medium Purple
#9E43A2
ΔE00 3.87
Warm Purple
#952E8F
ΔE00 5.57
Barney
#AC1DB8
ΔE00 5.72
Barney Purple
#A00498
ΔE00 6.40
Purply
#983FB2
ΔE00 6.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF339E #33AF44
analogous
#8233AF #AF339E #AF3360
triadic
#AF339E #9EAF33 #339EAF
tetradic
#AF339E #AF8233 #33AF44 #3360AF
square
#AF339E #AF8233 #33AF44 #3360AF
split-complementary
#AF339E #60AF33 #33AF82
monochromatic
#501748 #802573 #AF339E #CD52BC #DB82CE
Accessibility & contrast
On white
5.54
#AF339E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.79
#AF339E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF339E
5.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF339E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF339E | 1.00 | 5.54 | 3.79 | 5.54 |
| #FFFFFF | 5.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#305DA1
Deuteranopia (green-blind)
#5C6F9B
Tritanopia (blue-blind)
#B73E65
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #af339e; /* rgb */ color: rgb(175, 51, 158); /* oklch */ color: oklch(54.5% 0.197 334.0);
Tailwind
colors: {
custom: {
50: '#ca76bb',
500: '#af339e',
950: '#000000',
},
}SCSS
$custom: #af339e; $custom-light: #ca76bb; $custom-dark: #000000;
JSON
{
"hex": "#af339e",
"rgb": {
"r": 175,
"g": 51,
"b": 158
},
"hsl": {
"h": 308.226,
"s": 54.867,
"l": 44.314
},
"oklch": {
"l": 0.54465,
"c": 0.19733,
"h": 334
},
"luminance": 0.1395
}Semantic roles & 50–950 ramp
primary
#AF339E
secondary
#7AC484
accent
#DE5E4A
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140912
muted
#827B81