#AF3FB1#AF3FB1
#AF3FB1 is a mid, vivid purple. Relative luminance 0.158; OKLCH L 56.7% C 0.197 H 327.1°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).
Color values
| HEX | #AF3FB1 |
|---|---|
| RGB | rgb(175, 63, 177) |
| HSL | hsl(299, 48%, 47%) |
| HSV | hsv(299, 64%, 69%) |
| CMYK | cmyk(1.1%, 64.4%, 0%, 30.6%) |
| CIE-LAB | lab(46.77, 59.70, -38.74) |
| CIE-LCH | lch(46.77, 71.17, 327.02°) |
| OKLab | oklab(56.66% 0.1655 -0.1072) |
| OKLCH | oklch(56.66% 0.197 327.1) |
| XYZ | xyz(27.3921, 15.8451, 43.2021) |
| Luminance | 0.1584 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.23
Medium Purple
#9E43A2
ΔE00 3.58
Purpley Pink
#C83CB9
ΔE00 4.82
Purply
#983FB2
ΔE00 4.89
Barney
#AC1DB8
ΔE00 5.02
Pinky Purple
#C94CBE
ΔE00 6.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF3FB1 #41B13F
analogous
#763FB1 #AF3FB1 #B13F7A
triadic
#AF3FB1 #B1AF3F #3FB1AF
tetradic
#AF3FB1 #B1763F #41B13F #3F7AB1
square
#AF3FB1 #B1763F #41B13F #3F7AB1
split-complementary
#AF3FB1 #7AB13F #3FB176
monochromatic
#561F57 #822F84 #AF3FB1 #C665C8 #D792D8
Accessibility & contrast
On white
5.04
#AF3FB1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.17
#AF3FB1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF3FB1
5.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF3FB1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF3FB1 | 1.00 | 5.04 | 4.17 | 5.04 |
| #FFFFFF | 5.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2E66B4
Deuteranopia (green-blind)
#5974AE
Tritanopia (blue-blind)
#B44F73
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #af3fb1; /* rgb */ color: rgb(175, 63, 177); /* oklch */ color: oklch(56.7% 0.197 327.1);
Tailwind
colors: {
custom: {
50: '#ca7cc9',
500: '#af3fb1',
950: '#000000',
},
}SCSS
$custom: #af3fb1; $custom-light: #ca7cc9; $custom-dark: #000000;
JSON
{
"hex": "#af3fb1",
"rgb": {
"r": 175,
"g": 63,
"b": 177
},
"hsl": {
"h": 298.947,
"s": 47.5,
"l": 47.059
},
"oklch": {
"l": 0.56664,
"c": 0.19716,
"h": 327.1
},
"luminance": 0.15843
}Semantic roles & 50–950 ramp
primary
#AF3FB1
secondary
#89C488
accent
#D75153
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82