#C340CF#C340CF
#C340CF is a mid, highly saturated purple. Relative luminance 0.198; OKLCH L 61.3% C 0.230 H 324.3°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).
Color values
| HEX | #C340CF |
|---|---|
| RGB | rgb(195, 64, 207) |
| HSL | hsl(295, 60%, 53%) |
| HSV | hsv(295, 69%, 81%) |
| CMYK | cmyk(5.8%, 69.1%, 0%, 18.8%) |
| CIE-LAB | lab(51.58, 69.11, -48.32) |
| CIE-LCH | lch(51.58, 84.33, 325.04°) |
| OKLab | oklab(61.26% 0.1871 -0.1345) |
| OKLCH | oklch(61.26% 0.23 324.3) |
| XYZ | xyz(35.6006, 19.7761, 60.9614) |
| Luminance | 0.1977 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purple Pink
#D725DE
ΔE00 3.38
Mediumorchid
#BA55D3
ΔE00 3.55
Purpley Pink
#C83CB9
ΔE00 4.06
Pinky Purple
#C94CBE
ΔE00 4.35
Pinkish Purple
#D648D7
ΔE00 4.43
Hot Purple
#CB00F5
ΔE00 5.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C340CF #4CCF40
analogous
#7B40CF #C340CF #CF4093
triadic
#C340CF #CFC340 #40CFC3
tetradic
#C340CF #CF7B40 #4CCF40 #4093CF
square
#C340CF #CF7B40 #4CCF40 #4093CF
split-complementary
#C340CF #93CF40 #40CF7B
monochromatic
#6F1E77 #9D2AA8 #C340CF #D271DB #E2A2E8
Accessibility & contrast
On white
4.24
#C340CF on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.95
#C340CF on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #C340CF
4.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C340CF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C340CF | 1.00 | 4.24 | 4.95 | 4.95 |
| #FFFFFF | 4.24 | 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)
#1871D3
Deuteranopia (green-blind)
#5A80CB
Tritanopia (blue-blind)
#C75883
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #c340cf; /* rgb */ color: rgb(195, 64, 207); /* oklch */ color: oklch(61.3% 0.230 324.3);
Tailwind
colors: {
custom: {
50: '#d980de',
500: '#c340cf',
950: '#000000',
},
}SCSS
$custom: #c340cf; $custom-light: #d980de; $custom-dark: #000000;
JSON
{
"hex": "#c340cf",
"rgb": {
"r": 195,
"g": 64,
"b": 207
},
"hsl": {
"h": 294.965,
"s": 59.833,
"l": 53.137
},
"oklch": {
"l": 0.6126,
"c": 0.23044,
"h": 324.3
},
"luminance": 0.19774
}Semantic roles & 50–950 ramp
primary
#C340CF
secondary
#9CD497
accent
#E34552
background
#FDF8FD
surface
#FBEFFB
border
#D4CAD4
text
#150B15
muted
#837C83