#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
RGBrgb(195, 64, 207)
HSLhsl(295, 60%, 53%)
HSVhsv(295, 69%, 81%)
CMYKcmyk(5.8%, 69.1%, 0%, 18.8%)
CIE-LABlab(51.58, 69.11, -48.32)
CIE-LCHlch(51.58, 84.33, 325.04°)
OKLaboklab(61.26% 0.1871 -0.1345)
OKLCHoklch(61.26% 0.23 324.3)
XYZxyz(35.6006, 19.7761, 60.9614)
Luminance0.1977 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

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
##C340CF1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.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

Preview Lab

Preview with #C340CF

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#C340CF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva