#B945E2#B945E2
#B945E2 is a mid, highly saturated purple. Relative luminance 0.201; OKLCH L 61.6% C 0.237 H 315.8°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).
Color values
| HEX | #B945E2 |
|---|---|
| RGB | rgb(185, 69, 226) |
| HSL | hsl(284, 73%, 58%) |
| HSV | hsv(284, 69%, 89%) |
| CMYK | cmyk(18.1%, 69.5%, 0%, 11.4%) |
| CIE-LAB | lab(51.91, 68.59, -58.69) |
| CIE-LCH | lch(51.91, 90.28, 319.44°) |
| OKLab | oklab(61.56% 0.1696 -0.1651) |
| OKLCH | oklch(61.56% 0.237 315.8) |
| XYZ | xyz(35.8610, 20.0629, 73.9203) |
| Luminance | 0.2006 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Mediumorchid
#BA55D3
ΔE00 3.73
Lightish Purple
#A552E6
ΔE00 3.87
Hot Purple
#CB00F5
ΔE00 4.50
Purple Pink
#D725DE
ΔE00 5.10
Neon Purple
#BC13FE
ΔE00 5.20
Bright Purple
#BE03FD
ΔE00 5.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B945E2 #6EE245
analogous
#6A45E2 #B945E2 #E245BD
triadic
#B945E2 #E2B945 #45E2B9
tetradic
#B945E2 #E26A45 #6EE245 #45BDE2
square
#B945E2 #E26A45 #6EE245 #45BDE2
split-complementary
#B945E2 #BDE245 #45E26A
monochromatic
#741795 #9E20CA #B945E2 #CD7AEA #E1AFF3
Accessibility & contrast
On white
4.19
#B945E2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.01
#B945E2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B945E2
5.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B945E2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B945E2 | 1.00 | 4.19 | 5.01 | 5.01 |
| #FFFFFF | 4.19 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.01 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.01 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0075E7
Deuteranopia (green-blind)
#437FDE
Tritanopia (blue-blind)
#B6658F
Achromatopsia (no color)
#7C7C7C
Design tokens & code
CSS
--color: #b945e2; /* rgb */ color: rgb(185, 69, 226); /* oklch */ color: oklch(61.6% 0.237 315.8);
Tailwind
colors: {
custom: {
50: '#d282ec',
500: '#b945e2',
950: '#000000',
},
}SCSS
$custom: #b945e2; $custom-light: #d282ec; $custom-dark: #000000;
JSON
{
"hex": "#b945e2",
"rgb": {
"r": 185,
"g": 69,
"b": 226
},
"hsl": {
"h": 284.331,
"s": 73.023,
"l": 57.843
},
"oklch": {
"l": 0.61557,
"c": 0.23673,
"h": 315.8
},
"luminance": 0.20062
}Semantic roles & 50–950 ramp
primary
#B945E2
secondary
#B2E1A2
accent
#F03868
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#150B16
muted
#837C84