#C340A2#C340A2
#C340A2 is a mid, vivid pink. Relative luminance 0.179; OKLCH L 58.9% C 0.196 H 339.4°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).
Color values
| HEX | #C340A2 |
|---|---|
| RGB | rgb(195, 64, 162) |
| HSL | hsl(315, 52%, 51%) |
| HSV | hsv(315, 67%, 76%) |
| CMYK | cmyk(0%, 67.2%, 16.9%, 23.5%) |
| CIE-LAB | lab(49.35, 61.98, -25.62) |
| CIE-LCH | lch(49.35, 67.06, 337.54°) |
| OKLab | oklab(58.92% 0.1839 -0.0692) |
| OKLCH | oklch(58.92% 0.196 339.4) |
| XYZ | xyz(30.8614, 17.8804, 36.0013) |
| Luminance | 0.1788 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 4.16
Pinky Purple
#C94CBE
ΔE00 5.48
Ugly Purple
#A442A0
ΔE00 6.44
Mediumvioletred
#C71585
ΔE00 6.87
Purplish Pink
#CE5DAE
ΔE00 6.96
Medium Purple
#9E43A2
ΔE00 7.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C340A2 #40C361
analogous
#A340C3 #C340A2 #C34060
triadic
#C340A2 #A2C340 #40A2C3
tetradic
#C340A2 #C3A340 #40C361 #4060C3
square
#C340A2 #C3A340 #40C361 #4060C3
split-complementary
#C340A2 #60C340 #40C3A3
monochromatic
#682156 #972F7D #C340A2 #D26FB9 #E09DCF
Accessibility & contrast
On white
4.59
#C340A2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.58
#C340A2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #C340A2
4.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C340A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##C340A2 | 1.00 | 4.59 | 4.58 | 4.59 |
| #FFFFFF | 4.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4768A5
Deuteranopia (green-blind)
#707D9F
Tritanopia (blue-blind)
#CE446B
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #c340a2; /* rgb */ color: rgb(195, 64, 162); /* oklch */ color: oklch(58.9% 0.196 339.4);
Tailwind
colors: {
custom: {
50: '#d97fbd',
500: '#c340a2',
950: '#000000',
},
}SCSS
$custom: #c340a2; $custom-light: #d97fbd; $custom-dark: #000000;
JSON
{
"hex": "#c340a2",
"rgb": {
"r": 195,
"g": 64,
"b": 162
},
"hsl": {
"h": 315.115,
"s": 52.191,
"l": 50.784
},
"oklch": {
"l": 0.58922,
"c": 0.19644,
"h": 339.4
},
"luminance": 0.17878
}Semantic roles & 50–950 ramp
primary
#C340A2
secondary
#92CCA1
accent
#DC704C
background
#FDF8FB
surface
#FBEFF6
border
#D4CAD0
text
#150B12
muted
#837C81