#B640AB#B640AB
#B640AB is a mid, vivid purple. Relative luminance 0.166; OKLCH L 57.4% C 0.195 H 331.7°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).
Color values
| HEX | #B640AB |
|---|---|
| RGB | rgb(182, 64, 171) |
| HSL | hsl(306, 48%, 48%) |
| HSV | hsv(306, 65%, 71%) |
| CMYK | cmyk(0%, 64.8%, 6%, 28.6%) |
| CIE-LAB | lab(47.69, 60.02, -33.68) |
| CIE-LCH | lch(47.69, 68.83, 330.70°) |
| OKLab | oklab(57.45% 0.1716 -0.0924) |
| OKLCH | oklch(57.45% 0.195 331.7) |
| XYZ | xyz(28.4755, 16.5543, 40.2157) |
| Luminance | 0.1655 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.57
Purpley Pink
#C83CB9
ΔE00 3.64
Medium Purple
#9E43A2
ΔE00 4.61
Pinky Purple
#C94CBE
ΔE00 5.66
Barney
#AC1DB8
ΔE00 6.68
Purply
#983FB2
ΔE00 6.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B640AB #40B64B
analogous
#8640B6 #B640AB #B64070
triadic
#B640AB #ABB640 #40ABB6
tetradic
#B640AB #B68640 #40B64B #4070B6
square
#B640AB #B68640 #40B64B #4070B6
split-complementary
#B640AB #70B640 #40B686
monochromatic
#5B2056 #893080 #B640AB #CA69C1 #DA96D4
Accessibility & contrast
On white
4.87
#B640AB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.31
#B640AB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #B640AB
4.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B640AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##B640AB | 1.00 | 4.87 | 4.31 | 4.87 |
| #FFFFFF | 4.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3A67AE
Deuteranopia (green-blind)
#6277A8
Tritanopia (blue-blind)
#BD4B70
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #b640ab; /* rgb */ color: rgb(182, 64, 171); /* oklch */ color: oklch(57.4% 0.195 331.7);
Tailwind
colors: {
custom: {
50: '#cf7dc4',
500: '#b640ab',
950: '#000000',
},
}SCSS
$custom: #b640ab; $custom-light: #cf7dc4; $custom-dark: #000000;
JSON
{
"hex": "#b640ab",
"rgb": {
"r": 182,
"g": 64,
"b": 171
},
"hsl": {
"h": 305.593,
"s": 47.967,
"l": 48.235
},
"oklch": {
"l": 0.57448,
"c": 0.19489,
"h": 331.7
},
"luminance": 0.16552
}Semantic roles & 50–950 ramp
primary
#B640AB
secondary
#8CC691
accent
#D85D50
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140A13
muted
#837C82