#B645AB#B645AB
#B645AB is a mid, vivid purple. Relative luminance 0.171; OKLCH L 58.0% C 0.188 H 331.7°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).
Color values
| HEX | #B645AB |
|---|---|
| RGB | rgb(182, 69, 171) |
| HSL | hsl(306, 45%, 49%) |
| HSV | hsv(306, 62%, 71%) |
| CMYK | cmyk(0%, 62.1%, 6%, 28.6%) |
| CIE-LAB | lab(48.44, 57.95, -32.51) |
| CIE-LCH | lch(48.44, 66.45, 330.71°) |
| OKLab | oklab(57.99% 0.1656 -0.0891) |
| OKLCH | oklch(57.99% 0.188 331.7) |
| XYZ | xyz(28.7702, 17.1437, 40.3139) |
| Luminance | 0.1714 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 3.47
Ugly Purple
#A442A0
ΔE00 3.97
Medium Purple
#9E43A2
ΔE00 5.00
Pinky Purple
#C94CBE
ΔE00 5.05
Purply
#983FB2
ΔE00 7.44
Barney
#AC1DB8
ΔE00 7.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B645AB #45B650
analogous
#8945B6 #B645AB #B64573
triadic
#B645AB #ABB645 #45ABB6
tetradic
#B645AB #B68945 #45B650 #4573B6
square
#B645AB #B68945 #45B650 #4573B6
split-complementary
#B645AB #73B645 #45B689
monochromatic
#5D2358 #8A3481 #B645AB #C970C0 #D99CD3
Accessibility & contrast
On white
4.74
#B645AB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.43
#B645AB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #B645AB
4.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B645AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##B645AB | 1.00 | 4.74 | 4.43 | 4.74 |
| #FFFFFF | 4.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3F69AE
Deuteranopia (green-blind)
#6579A8
Tritanopia (blue-blind)
#BD4F72
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #b645ab; /* rgb */ color: rgb(182, 69, 171); /* oklch */ color: oklch(58.0% 0.188 331.7);
Tailwind
colors: {
custom: {
50: '#cf80c4',
500: '#b645ab',
950: '#000000',
},
}SCSS
$custom: #b645ab; $custom-light: #cf80c4; $custom-dark: #000000;
JSON
{
"hex": "#b645ab",
"rgb": {
"r": 182,
"g": 69,
"b": 171
},
"hsl": {
"h": 305.841,
"s": 45.02,
"l": 49.216
},
"oklch": {
"l": 0.57992,
"c": 0.18804,
"h": 331.7
},
"luminance": 0.17142
}Semantic roles & 50–950 ramp
primary
#B645AB
secondary
#91C696
accent
#D56053
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B12
muted
#837C81