#B251C2#B251C2
#B251C2 is a mid, vivid purple. Relative luminance 0.192; OKLCH L 60.1% C 0.188 H 321.8°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).
Color values
| HEX | #B251C2 |
|---|---|
| RGB | rgb(178, 81, 194) |
| HSL | hsl(292, 48%, 54%) |
| HSV | hsv(292, 58%, 76%) |
| CMYK | cmyk(8.2%, 58.2%, 0%, 23.9%) |
| CIE-LAB | lab(50.97, 55.64, -41.96) |
| CIE-LCH | lch(50.97, 69.69, 322.98°) |
| OKLab | oklab(60.1% 0.148 -0.1166) |
| OKLCH | oklch(60.1% 0.188 321.8) |
| XYZ | xyz(31.0391, 19.2464, 53.1084) |
| Luminance | 0.1925 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Mediumorchid
#BA55D3
ΔE00 3.17
Pinky Purple
#C94CBE
ΔE00 4.69
Purpley Pink
#C83CB9
ΔE00 5.01
Amethyst
#9B5FC0
ΔE00 5.11
Pinkish Purple
#D648D7
ΔE00 6.42
Purple Pink
#D725DE
ΔE00 6.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B251C2 #61C251
analogous
#7A51C2 #B251C2 #C2519A
triadic
#B251C2 #C2B251 #51C2B2
tetradic
#B251C2 #C27A51 #61C251 #519AC2
square
#B251C2 #C27A51 #61C251 #519AC2
split-complementary
#B251C2 #9AC251 #51C27A
monochromatic
#672871 #90379E #B251C2 #C67ED2 #DAACE2
Accessibility & contrast
On white
4.33
#B251C2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.85
#B251C2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B251C2
4.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B251C2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B251C2 | 1.00 | 4.33 | 4.85 | 4.85 |
| #FFFFFF | 4.33 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.85 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.85 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3B72C6
Deuteranopia (green-blind)
#5E7DBF
Tritanopia (blue-blind)
#B46282
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #b251c2; /* rgb */ color: rgb(178, 81, 194); /* oklch */ color: oklch(60.1% 0.188 321.8);
Tailwind
colors: {
custom: {
50: '#cc87d5',
500: '#b251c2',
950: '#000000',
},
}SCSS
$custom: #b251c2; $custom-light: #cc87d5; $custom-dark: #000000;
JSON
{
"hex": "#b251c2",
"rgb": {
"r": 178,
"g": 81,
"b": 194
},
"hsl": {
"h": 291.504,
"s": 48.085,
"l": 53.922
},
"oklch": {
"l": 0.60096,
"c": 0.18841,
"h": 321.8
},
"luminance": 0.19245
}Semantic roles & 50–950 ramp
primary
#B251C2
secondary
#A6D09F
accent
#D85063
background
#FCF8FD
surface
#F9F0FA
border
#D2CBD3
text
#140C14
muted
#827D83