#C340AB#C340AB
#C340AB is a mid, highly saturated pink. Relative luminance 0.182; OKLCH L 59.3% C 0.203 H 336.0°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).
Color values
| HEX | #C340AB |
|---|---|
| RGB | rgb(195, 64, 171) |
| HSL | hsl(311, 52%, 51%) |
| HSV | hsv(311, 67%, 76%) |
| CMYK | cmyk(0%, 67.2%, 12.3%, 23.5%) |
| CIE-LAB | lab(49.75, 63.30, -30.31) |
| CIE-LCH | lch(49.75, 70.18, 334.41°) |
| OKLab | oklab(59.35% 0.1852 -0.0825) |
| OKLCH | oklch(59.35% 0.203 336) |
| XYZ | xyz(31.6902, 18.2119, 40.3664) |
| Luminance | 0.1821 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 2.46
Pinky Purple
#C94CBE
ΔE00 4.11
Ugly Purple
#A442A0
ΔE00 6.11
Purplish Pink
#CE5DAE
ΔE00 7.06
Medium Purple
#9E43A2
ΔE00 7.30
Purpleish Pink
#DF4EC8
ΔE00 7.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C340AB #40C358
analogous
#9940C3 #C340AB #C34069
triadic
#C340AB #ABC340 #40ABC3
tetradic
#C340AB #C39940 #40C358 #4069C3
square
#C340AB #C39940 #40C358 #4069C3
split-complementary
#C340AB #69C340 #40C399
monochromatic
#68215B #972F84 #C340AB #D26FBF #E09DD4
Accessibility & contrast
On white
4.52
#C340AB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.64
#C340AB on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #C340AB
4.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C340AB | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C340AB | 1.00 | 4.52 | 4.64 | 4.64 |
| #FFFFFF | 4.52 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.64 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.64 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#416AAE
Deuteranopia (green-blind)
#6D7DA8
Tritanopia (blue-blind)
#CD4870
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #c340ab; /* rgb */ color: rgb(195, 64, 171); /* oklch */ color: oklch(59.3% 0.203 336.0);
Tailwind
colors: {
custom: {
50: '#d97fc4',
500: '#c340ab',
950: '#000000',
},
}SCSS
$custom: #c340ab; $custom-light: #d97fc4; $custom-dark: #000000;
JSON
{
"hex": "#c340ab",
"rgb": {
"r": 195,
"g": 64,
"b": 171
},
"hsl": {
"h": 310.992,
"s": 52.191,
"l": 50.784
},
"oklch": {
"l": 0.59345,
"c": 0.20271,
"h": 336
},
"luminance": 0.18209
}Semantic roles & 50–950 ramp
primary
#C340AB
secondary
#92CC9D
accent
#DC664C
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B12
muted
#837C81