#AF45B2#AF45B2
#AF45B2 is a mid, vivid purple. Relative luminance 0.166; OKLCH L 57.4% C 0.190 H 326.6°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).
Color values
| HEX | #AF45B2 |
|---|---|
| RGB | rgb(175, 69, 178) |
| HSL | hsl(298, 44%, 48%) |
| HSV | hsv(298, 61%, 70%) |
| CMYK | cmyk(1.7%, 61.2%, 0%, 30.2%) |
| CIE-LAB | lab(47.73, 57.35, -37.80) |
| CIE-LCH | lch(47.73, 68.69, 326.61°) |
| OKLab | oklab(57.38% 0.1585 -0.1045) |
| OKLCH | oklch(57.38% 0.19 326.6) |
| XYZ | xyz(27.8427, 16.5863, 43.8458) |
| Luminance | 0.1658 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.60
Medium Purple
#9E43A2
ΔE00 3.98
Purpley Pink
#C83CB9
ΔE00 4.45
Purply
#983FB2
ΔE00 5.40
Pinky Purple
#C94CBE
ΔE00 5.97
Barney
#AC1DB8
ΔE00 6.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF45B2 #48B245
analogous
#7845B2 #AF45B2 #B2457E
triadic
#AF45B2 #B2AF45 #45B2AF
tetradic
#AF45B2 #B27845 #48B245 #457EB2
square
#AF45B2 #B27845 #48B245 #457EB2
split-complementary
#AF45B2 #7EB245 #45B278
monochromatic
#58235A #843486 #AF45B2 #C46EC7 #D69AD8
Accessibility & contrast
On white
4.86
#AF45B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.32
#AF45B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF45B2
4.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF45B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF45B2 | 1.00 | 4.86 | 4.32 | 4.86 |
| #FFFFFF | 4.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3669B5
Deuteranopia (green-blind)
#5C76AF
Tritanopia (blue-blind)
#B45375
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #af45b2; /* rgb */ color: rgb(175, 69, 178); /* oklch */ color: oklch(57.4% 0.190 326.6);
Tailwind
colors: {
custom: {
50: '#ca80c9',
500: '#af45b2',
950: '#000000',
},
}SCSS
$custom: #af45b2; $custom-light: #ca80c9; $custom-dark: #000000;
JSON
{
"hex": "#af45b2",
"rgb": {
"r": 175,
"g": 69,
"b": 178
},
"hsl": {
"h": 298.349,
"s": 44.13,
"l": 48.431
},
"oklch": {
"l": 0.5738,
"c": 0.18982,
"h": 326.6
},
"luminance": 0.16585
}Semantic roles & 50–950 ramp
primary
#AF45B2
secondary
#90C48F
accent
#D45457
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82