#B640E2#B640E2
#B640E2 is a mid, highly saturated purple. Relative luminance 0.191; OKLCH L 60.7% C 0.241 H 315.1°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).
Color values
| HEX | #B640E2 |
|---|---|
| RGB | rgb(182, 64, 226) |
| HSL | hsl(284, 74%, 57%) |
| HSV | hsv(284, 72%, 89%) |
| CMYK | cmyk(19.5%, 71.7%, 0%, 11.4%) |
| CIE-LAB | lab(50.81, 69.90, -60.49) |
| CIE-LCH | lch(50.81, 92.44, 319.13°) |
| OKLab | oklab(60.69% 0.1709 -0.1705) |
| OKLCH | oklch(60.69% 0.241 315.1) |
| XYZ | xyz(34.8500, 19.1041, 73.7885) |
| Luminance | 0.1910 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Lightish Purple
#A552E6
ΔE00 3.84
Hot Purple
#CB00F5
ΔE00 4.11
Neon Purple
#BC13FE
ΔE00 4.43
Bright Purple
#BE03FD
ΔE00 4.59
Mediumorchid
#BA55D3
ΔE00 4.72
Purple Pink
#D725DE
ΔE00 5.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B640E2 #6CE240
analogous
#6540E2 #B640E2 #E240BD
triadic
#B640E2 #E2B640 #40E2B6
tetradic
#B640E2 #E26540 #6CE240 #40BDE2
square
#B640E2 #E26540 #6CE240 #40BDE2
split-complementary
#B640E2 #BDE240 #40E265
monochromatic
#701692 #991EC7 #B640E2 #CA75EA #DFAAF2
Accessibility & contrast
On white
4.36
#B640E2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.82
#B640E2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B640E2
4.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B640E2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B640E2 | 1.00 | 4.36 | 4.82 | 4.82 |
| #FFFFFF | 4.36 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.82 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.82 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0072E7
Deuteranopia (green-blind)
#3A7CDE
Tritanopia (blue-blind)
#B2628E
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #b640e2; /* rgb */ color: rgb(182, 64, 226); /* oklch */ color: oklch(60.7% 0.241 315.1);
Tailwind
colors: {
custom: {
50: '#d07fec',
500: '#b640e2',
950: '#000000',
},
}SCSS
$custom: #b640e2; $custom-light: #d07fec; $custom-dark: #000000;
JSON
{
"hex": "#b640e2",
"rgb": {
"r": 182,
"g": 64,
"b": 226
},
"hsl": {
"h": 283.704,
"s": 73.636,
"l": 56.863
},
"oklch": {
"l": 0.60687,
"c": 0.24134,
"h": 315.1
},
"luminance": 0.19103
}Semantic roles & 50–950 ramp
primary
#B640E2
secondary
#B0E09E
accent
#F0386A
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B16
muted
#837C84