#B940E2#B940E2
#B940E2 is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 61.1% C 0.242 H 316.0°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).
Color values
| HEX | #B940E2 |
|---|---|
| RGB | rgb(185, 64, 226) |
| HSL | hsl(285, 74%, 57%) |
| HSV | hsv(285, 72%, 89%) |
| CMYK | cmyk(18.1%, 71.7%, 0%, 11.4%) |
| CIE-LAB | lab(51.24, 70.49, -59.77) |
| CIE-LCH | lch(51.24, 92.42, 319.70°) |
| OKLab | oklab(61.08% 0.1745 -0.1683) |
| OKLCH | oklch(61.08% 0.242 316) |
| XYZ | xyz(35.5663, 19.4735, 73.8220) |
| Luminance | 0.1947 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Hot Purple
#CB00F5
ΔE00 3.98
Lightish Purple
#A552E6
ΔE00 4.15
Mediumorchid
#BA55D3
ΔE00 4.36
Neon Purple
#BC13FE
ΔE00 4.63
Bright Purple
#BE03FD
ΔE00 4.78
Purple Pink
#D725DE
ΔE00 5.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B940E2 #69E240
analogous
#6840E2 #B940E2 #E240BA
triadic
#B940E2 #E2B940 #40E2B9
tetradic
#B940E2 #E26840 #69E240 #40BAE2
square
#B940E2 #E26840 #69E240 #40BAE2
split-complementary
#B940E2 #BAE240 #40E268
monochromatic
#721692 #9C1EC7 #B940E2 #CC75EA #E0AAF2
Accessibility & contrast
On white
4.29
#B940E2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.89
#B940E2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B940E2
4.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B940E2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B940E2 | 1.00 | 4.29 | 4.89 | 4.89 |
| #FFFFFF | 4.29 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.89 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.89 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0073E7
Deuteranopia (green-blind)
#3F7DDE
Tritanopia (blue-blind)
#B6628E
Achromatopsia (no color)
#7A7A7A
Design tokens & code
CSS
--color: #b940e2; /* rgb */ color: rgb(185, 64, 226); /* oklch */ color: oklch(61.1% 0.242 316.0);
Tailwind
colors: {
custom: {
50: '#d280ec',
500: '#b940e2',
950: '#000000',
},
}SCSS
$custom: #b940e2; $custom-light: #d280ec; $custom-dark: #000000;
JSON
{
"hex": "#b940e2",
"rgb": {
"r": 185,
"g": 64,
"b": 226
},
"hsl": {
"h": 284.815,
"s": 73.636,
"l": 56.863
},
"oklch": {
"l": 0.61079,
"c": 0.24239,
"h": 316
},
"luminance": 0.19472
}Semantic roles & 50–950 ramp
primary
#B940E2
secondary
#AFE09E
accent
#F03866
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#150B16
muted
#837C84