#AF4BE3#AF4BE3
#AF4BE3 is a mid, highly saturated violet. Relative luminance 0.197; OKLCH L 61.0% C 0.227 H 311.7°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).
Color values
| HEX | #AF4BE3 |
|---|---|
| RGB | rgb(175, 75, 227) |
| HSL | hsl(279, 73%, 59%) |
| HSV | hsv(279, 67%, 89%) |
| CMYK | cmyk(22.9%, 67%, 0%, 11%) |
| CIE-LAB | lab(51.49, 64.24, -60.01) |
| CIE-LCH | lch(51.49, 87.91, 316.95°) |
| OKLab | oklab(60.99% 0.1511 -0.1693) |
| OKLCH | oklch(60.99% 0.227 311.7) |
| XYZ | xyz(34.0579, 19.6930, 74.6652) |
| Luminance | 0.1969 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 2.11
Lighter Purple
#A55AF4
ΔE00 4.41
Mediumorchid
#BA55D3
ΔE00 4.44
Neon Purple
#BC13FE
ΔE00 5.43
Hot Purple
#CB00F5
ΔE00 5.61
Bright Purple
#BE03FD
ΔE00 5.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF4BE3 #7FE34B
analogous
#634BE3 #AF4BE3 #E34BCB
triadic
#AF4BE3 #E3AF4B #4BE3AF
tetradic
#AF4BE3 #E3634B #7FE34B #4BCBE3
square
#AF4BE3 #E3634B #7FE34B #4BCBE3
split-complementary
#AF4BE3 #CBE34B #4BE363
monochromatic
#6F189B #9420D0 #AF4BE3 #C780EB #DEB5F3
Accessibility & contrast
On white
4.25
#AF4BE3 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.94
#AF4BE3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #AF4BE3
4.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF4BE3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AF4BE3 | 1.00 | 4.25 | 4.94 | 4.94 |
| #FFFFFF | 4.25 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.94 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.94 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0076E8
Deuteranopia (green-blind)
#3A7DE0
Tritanopia (blue-blind)
#A96A91
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #af4be3; /* rgb */ color: rgb(175, 75, 227); /* oklch */ color: oklch(61.0% 0.227 311.7);
Tailwind
colors: {
custom: {
50: '#cb84ed',
500: '#af4be3',
950: '#000000',
},
}SCSS
$custom: #af4be3; $custom-light: #cb84ed; $custom-dark: #000000;
JSON
{
"hex": "#af4be3",
"rgb": {
"r": 175,
"g": 75,
"b": 227
},
"hsl": {
"h": 279.474,
"s": 73.077,
"l": 59.216
},
"oklch": {
"l": 0.60994,
"c": 0.22695,
"h": 311.7
},
"luminance": 0.19692
}Semantic roles & 50–950 ramp
primary
#AF4BE3
secondary
#BCE3A7
accent
#F03877
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140B16
muted
#827C84