#AF4FA6#AF4FA6
#AF4FA6 is a mid, vivid purple. Relative luminance 0.175; OKLCH L 58.0% C 0.164 H 331.2°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).
Color values
| HEX | #AF4FA6 |
|---|---|
| RGB | rgb(175, 79, 166) |
| HSL | hsl(306, 38%, 50%) |
| HSV | hsv(306, 55%, 69%) |
| CMYK | cmyk(0%, 54.9%, 5.1%, 31.4%) |
| CIE-LAB | lab(48.84, 50.67, -29.02) |
| CIE-LCH | lch(48.84, 58.39, 330.19°) |
| OKLab | oklab(58% 0.1441 -0.0793) |
| OKLCH | oklch(58% 0.164 331.2) |
| XYZ | xyz(27.3580, 17.4609, 37.9983) |
| Luminance | 0.1746 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 4.18
Purpley Pink
#C83CB9
ΔE00 5.10
Medium Purple
#9E43A2
ΔE00 5.11
Pinky Purple
#C94CBE
ΔE00 5.69
Purpleish
#98568D
ΔE00 6.37
Purplish
#94568C
ΔE00 6.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF4FA6 #4FAF58
analogous
#884FAF #AF4FA6 #AF4F76
triadic
#AF4FA6 #A6AF4F #4FA6AF
tetradic
#AF4FA6 #AF884F #4FAF58 #4F76AF
square
#AF4FA6 #AF884F #4FAF58 #4F76AF
split-complementary
#AF4FA6 #76AF4F #4FAF88
monochromatic
#5B2956 #853C7E #AF4FA6 #C279BC #D5A3D1
Accessibility & contrast
On white
4.68
#AF4FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.49
#AF4FA6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF4FA6
4.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF4FA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF4FA6 | 1.00 | 4.68 | 4.49 | 4.68 |
| #FFFFFF | 4.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4B6BA9
Deuteranopia (green-blind)
#6879A3
Tritanopia (blue-blind)
#B55773
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #af4fa6; /* rgb */ color: rgb(175, 79, 166); /* oklch */ color: oklch(58.0% 0.164 331.2);
Tailwind
colors: {
custom: {
50: '#c985c0',
500: '#af4fa6',
950: '#000000',
},
}SCSS
$custom: #af4fa6; $custom-light: #c985c0; $custom-dark: #000000;
JSON
{
"hex": "#af4fa6",
"rgb": {
"r": 175,
"g": 79,
"b": 166
},
"hsl": {
"h": 305.625,
"s": 37.795,
"l": 49.804
},
"oklch": {
"l": 0.57996,
"c": 0.16447,
"h": 331.2
},
"luminance": 0.17459
}Semantic roles & 50–950 ramp
primary
#AF4FA6
secondary
#97C39B
accent
#CE655A
background
#FCF8FB
surface
#F9F0F7
border
#D2CBD0
text
#130B12
muted
#827C81