#C151B7#C151B7
#C151B7 is a mid, vivid purple. Relative luminance 0.206; OKLCH L 61.5% C 0.187 H 331.2°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).
Color values
| HEX | #C151B7 |
|---|---|
| RGB | rgb(193, 81, 183) |
| HSL | hsl(305, 47%, 54%) |
| HSV | hsv(305, 58%, 76%) |
| CMYK | cmyk(0%, 58%, 5.2%, 24.3%) |
| CIE-LAB | lab(52.56, 57.62, -32.96) |
| CIE-LCH | lch(52.56, 66.38, 330.23°) |
| OKLab | oklab(61.51% 0.164 -0.0902) |
| OKLCH | oklch(61.51% 0.187 331.2) |
| XYZ | xyz(33.4818, 20.6435, 47.0117) |
| Luminance | 0.2064 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Pinky Purple
#C94CBE
ΔE00 1.64
Purpley Pink
#C83CB9
ΔE00 3.26
Purplish Pink
#CE5DAE
ΔE00 5.39
Purpleish Pink
#DF4EC8
ΔE00 5.50
Pinkish Purple
#D648D7
ΔE00 5.56
Mediumorchid
#BA55D3
ΔE00 5.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C151B7 #51C15B
analogous
#9351C1 #C151B7 #C1517F
triadic
#C151B7 #B7C151 #51B7C1
tetradic
#C151B7 #C19351 #51C15B #517FC1
square
#C151B7 #C19351 #51C15B #517FC1
split-complementary
#C151B7 #7FC151 #51C193
monochromatic
#702869 #9D3894 #C151B7 #D17ECA #E1ABDC
Accessibility & contrast
On white
4.10
#C151B7 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.13
#C151B7 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #C151B7
5.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C151B7 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C151B7 | 1.00 | 4.10 | 5.13 | 5.13 |
| #FFFFFF | 4.10 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.13 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.13 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4B73BA
Deuteranopia (green-blind)
#6F83B4
Tritanopia (blue-blind)
#C85B7D
Achromatopsia (no color)
#7D7D7D
Design tokens & code
CSS
--color: #c151b7; /* rgb */ color: rgb(193, 81, 183); /* oklch */ color: oklch(61.5% 0.187 331.2);
Tailwind
colors: {
custom: {
50: '#d688cd',
500: '#c151b7',
950: '#000000',
},
}SCSS
$custom: #c151b7; $custom-light: #d688cd; $custom-dark: #000000;
JSON
{
"hex": "#c151b7",
"rgb": {
"r": 193,
"g": 81,
"b": 183
},
"hsl": {
"h": 305.357,
"s": 47.458,
"l": 53.725
},
"oklch": {
"l": 0.61511,
"c": 0.18718,
"h": 331.2
},
"luminance": 0.20641
}Semantic roles & 50–950 ramp
primary
#C151B7
secondary
#9FCFA3
accent
#D75D51
background
#FDF8FC
surface
#FBF0F9
border
#D4CBD2
text
#150C13
muted
#837D82