#AF2BFB#AF2BFB
#AF2BFB is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 60.0% C 0.280 H 308.3°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).
Color values
| HEX | #AF2BFB |
|---|---|
| RGB | rgb(175, 43, 251) |
| HSL | hsl(278, 96%, 58%) |
| HSV | hsv(278, 83%, 98%) |
| CMYK | cmyk(30.3%, 82.9%, 0%, 1.6%) |
| CIE-LAB | lab(49.26, 80.30, -77.10) |
| CIE-LCH | lch(49.26, 111.32, 316.17°) |
| OKLab | oklab(59.95% 0.1732 -0.2193) |
| OKLCH | oklch(59.95% 0.28 308.3) |
| XYZ | xyz(35.9520, 17.8073, 92.7913) |
| Luminance | 0.1781 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Electric Purple
#AA23FF
ΔE00 1.39
Neon Purple
#BC13FE
ΔE00 1.92
Bright Purple
#BE03FD
ΔE00 2.29
Bright Violet
#AD0AFD
ΔE00 2.34
Hot Purple
#CB00F5
ΔE00 4.43
Lightish Purple
#A552E6
ΔE00 5.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF2BFB #77FB2B
analogous
#472BFB #AF2BFB #FB2BDF
triadic
#AF2BFB #FBAF2B #2BFBAF
tetradic
#AF2BFB #FB472B #77FB2B #2BDFFB
square
#AF2BFB #FB472B #77FB2B #2BDFFB
split-complementary
#AF2BFB #DFFB2B #2BFB47
monochromatic
#6C03A8 #9304E4 #AF2BFB #C667FC #DCA3FD
Accessibility & contrast
On white
4.60
#AF2BFB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.56
#AF2BFB on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #AF2BFB
4.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF2BFB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF2BFB | 1.00 | 4.60 | 4.56 | 4.60 |
| #FFFFFF | 4.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0071FF
Deuteranopia (green-blind)
#0076F7
Tritanopia (blue-blind)
#A36598
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #af2bfb; /* rgb */ color: rgb(175, 43, 251); /* oklch */ color: oklch(60.0% 0.280 308.3);
Tailwind
colors: {
custom: {
50: '#ce77fe',
500: '#af2bfb',
950: '#000000',
},
}SCSS
$custom: #af2bfb; $custom-light: #ce77fe; $custom-dark: #000000;
JSON
{
"hex": "#af2bfb",
"rgb": {
"r": 175,
"g": 43,
"b": 251
},
"hsl": {
"h": 278.077,
"s": 96.296,
"l": 57.647
},
"oklch": {
"l": 0.59951,
"c": 0.27952,
"h": 308.3
},
"luminance": 0.17807
}Semantic roles & 50–950 ramp
primary
#AF2BFB
secondary
#B6EB97
accent
#FF2977
background
#FDF7FF
surface
#FAEEFF
border
#D3C9D7
text
#150A18
muted
#837C86