#B645AA#B645AA
#B645AA is a mid, vivid purple. Relative luminance 0.171; OKLCH L 57.9% C 0.187 H 332.1°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).
Color values
| HEX | #B645AA |
|---|---|
| RGB | rgb(182, 69, 170) |
| HSL | hsl(306, 45%, 49%) |
| HSV | hsv(306, 62%, 71%) |
| CMYK | cmyk(0%, 62.1%, 6.6%, 28.6%) |
| CIE-LAB | lab(48.39, 57.79, -31.99) |
| CIE-LCH | lch(48.39, 66.06, 331.03°) |
| OKLab | oklab(57.94% 0.1655 -0.0876) |
| OKLCH | oklch(57.94% 0.187 332.1) |
| XYZ | xyz(28.6752, 17.1057, 39.8138) |
| Luminance | 0.1710 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 3.56
Ugly Purple
#A442A0
ΔE00 3.94
Medium Purple
#9E43A2
ΔE00 5.01
Pinky Purple
#C94CBE
ΔE00 5.13
Purply
#983FB2
ΔE00 7.54
Barney
#AC1DB8
ΔE00 7.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B645AA #45B651
analogous
#8A45B6 #B645AA #B64572
triadic
#B645AA #AAB645 #45AAB6
tetradic
#B645AA #B68A45 #45B651 #4572B6
square
#B645AA #B68A45 #45B651 #4572B6
split-complementary
#B645AA #72B645 #45B68A
monochromatic
#5D2357 #8A3481 #B645AA #C970BF #D99CD3
Accessibility & contrast
On white
4.75
#B645AA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.42
#B645AA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #B645AA
4.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B645AA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##B645AA | 1.00 | 4.75 | 4.42 | 4.75 |
| #FFFFFF | 4.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4069AD
Deuteranopia (green-blind)
#6579A7
Tritanopia (blue-blind)
#BD4F71
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #b645aa; /* rgb */ color: rgb(182, 69, 170); /* oklch */ color: oklch(57.9% 0.187 332.1);
Tailwind
colors: {
custom: {
50: '#cf80c3',
500: '#b645aa',
950: '#000000',
},
}SCSS
$custom: #b645aa; $custom-light: #cf80c3; $custom-dark: #000000;
JSON
{
"hex": "#b645aa",
"rgb": {
"r": 182,
"g": 69,
"b": 170
},
"hsl": {
"h": 306.372,
"s": 45.02,
"l": 49.216
},
"oklch": {
"l": 0.57941,
"c": 0.18724,
"h": 332.1
},
"luminance": 0.17104
}Semantic roles & 50–950 ramp
primary
#B645AA
secondary
#91C697
accent
#D56153
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B12
muted
#837C81