#C340CE#C340CE
#C340CE is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 61.2% C 0.230 H 324.6°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).
Color values
| HEX | #C340CE |
|---|---|
| RGB | rgb(195, 64, 206) |
| HSL | hsl(295, 59%, 53%) |
| HSV | hsv(295, 69%, 81%) |
| CMYK | cmyk(5.3%, 68.9%, 0%, 19.2%) |
| CIE-LAB | lab(51.53, 68.94, -47.83) |
| CIE-LCH | lch(51.53, 83.91, 325.25°) |
| OKLab | oklab(61.2% 0.1871 -0.1331) |
| OKLCH | oklch(61.2% 0.23 324.6) |
| XYZ | xyz(35.4787, 19.7273, 60.3196) |
| Luminance | 0.1973 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purple Pink
#D725DE
ΔE00 3.44
Mediumorchid
#BA55D3
ΔE00 3.61
Purpley Pink
#C83CB9
ΔE00 3.90
Pinky Purple
#C94CBE
ΔE00 4.23
Pinkish Purple
#D648D7
ΔE00 4.45
Hot Purple
#CB00F5
ΔE00 6.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C340CE #4BCE40
analogous
#7C40CE #C340CE #CE4092
triadic
#C340CE #CEC340 #40CEC3
tetradic
#C340CE #CE7C40 #4BCE40 #4092CE
square
#C340CE #CE7C40 #4BCE40 #4092CE
split-complementary
#C340CE #92CE40 #40CE7C
monochromatic
#6F1E75 #9D2BA6 #C340CE #D271DA #E2A1E7
Accessibility & contrast
On white
4.25
#C340CE on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.95
#C340CE on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #C340CE
4.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C340CE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C340CE | 1.00 | 4.25 | 4.95 | 4.95 |
| #FFFFFF | 4.25 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.95 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.95 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1A71D2
Deuteranopia (green-blind)
#5B80CA
Tritanopia (blue-blind)
#C75783
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #c340ce; /* rgb */ color: rgb(195, 64, 206); /* oklch */ color: oklch(61.2% 0.230 324.6);
Tailwind
colors: {
custom: {
50: '#d980dd',
500: '#c340ce',
950: '#000000',
},
}SCSS
$custom: #c340ce; $custom-light: #d980dd; $custom-dark: #000000;
JSON
{
"hex": "#c340ce",
"rgb": {
"r": 195,
"g": 64,
"b": 206
},
"hsl": {
"h": 295.352,
"s": 59.167,
"l": 52.941
},
"oklch": {
"l": 0.61202,
"c": 0.22963,
"h": 324.6
},
"luminance": 0.19725
}Semantic roles & 50–950 ramp
primary
#C340CE
secondary
#9BD496
accent
#E24552
background
#FDF8FD
surface
#FBEFFB
border
#D4CAD4
text
#150B15
muted
#837C83