#B645B2#B645B2
#B645B2 is a mid, vivid purple. Relative luminance 0.174; OKLCH L 58.4% C 0.194 H 329.1°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).
Color values
| HEX | #B645B2 |
|---|---|
| RGB | rgb(182, 69, 178) |
| HSL | hsl(302, 45%, 49%) |
| HSV | hsv(302, 62%, 71%) |
| CMYK | cmyk(0%, 62.1%, 2.2%, 28.6%) |
| CIE-LAB | lab(48.78, 59.13, -36.08) |
| CIE-LCH | lch(48.78, 69.27, 328.61°) |
| OKLab | oklab(58.35% 0.1663 -0.0994) |
| OKLCH | oklch(58.35% 0.194 329.1) |
| XYZ | xyz(29.4551, 17.4177, 43.9214) |
| Luminance | 0.1742 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 3.11
Ugly Purple
#A442A0
ΔE00 4.41
Pinky Purple
#C94CBE
ΔE00 4.65
Medium Purple
#9E43A2
ΔE00 5.14
Mediumorchid
#BA55D3
ΔE00 6.57
Purply
#983FB2
ΔE00 6.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B645B2 #45B649
analogous
#8245B6 #B645B2 #B6457A
triadic
#B645B2 #B2B645 #45B2B6
tetradic
#B645B2 #B68245 #45B649 #457AB6
square
#B645B2 #B68245 #45B649 #457AB6
split-complementary
#B645B2 #7AB645 #45B682
monochromatic
#5D235B #8A3487 #B645B2 #C970C5 #D99CD7
Accessibility & contrast
On white
4.68
#B645B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.48
#B645B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #B645B2
4.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B645B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##B645B2 | 1.00 | 4.68 | 4.48 | 4.68 |
| #FFFFFF | 4.68 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.68 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3A6AB5
Deuteranopia (green-blind)
#6279AF
Tritanopia (blue-blind)
#BC5275
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #b645b2; /* rgb */ color: rgb(182, 69, 178); /* oklch */ color: oklch(58.4% 0.194 329.1);
Tailwind
colors: {
custom: {
50: '#cf80c9',
500: '#b645b2',
950: '#000000',
},
}SCSS
$custom: #b645b2; $custom-light: #cf80c9; $custom-dark: #000000;
JSON
{
"hex": "#b645b2",
"rgb": {
"r": 182,
"g": 69,
"b": 178
},
"hsl": {
"h": 302.124,
"s": 45.02,
"l": 49.216
},
"oklch": {
"l": 0.58351,
"c": 0.19372,
"h": 329.1
},
"luminance": 0.17416
}Semantic roles & 50–950 ramp
primary
#B645B2
secondary
#91C693
accent
#D55853
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82