#C340CD#C340CD

#C340CD is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 61.1% C 0.229 H 324.9°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#C340CD
RGBrgb(195, 64, 205)
HSLhsl(296, 59%, 53%)
HSVhsv(296, 69%, 80%)
CMYKcmyk(4.9%, 68.8%, 0%, 19.6%)
CIE-LABlab(51.47, 68.77, -47.35)
CIE-LCHlch(51.47, 83.49, 325.45°)
OKLaboklab(61.15% 0.1872 -0.1317)
OKLCHoklch(61.15% 0.229 324.9)
XYZxyz(35.3577, 19.6789, 59.6818)
Luminance0.1968 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C340CD #4ACD40
analogous
#7D40CD #C340CD #CD4090
triadic
#C340CD #CDC340 #40CDC3
tetradic
#C340CD #CD7D40 #4ACD40 #4090CD
square
#C340CD #CD7D40 #4ACD40 #4090CD
split-complementary
#C340CD #90CD40 #40CD7D
monochromatic
#6E1E74 #9C2BA5 #C340CD #D271DA #E1A1E6

Accessibility & contrast

On white

4.25
#C340CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#C340CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C340CD
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C340CD#FFFFFF#000000##000000
##C340CD1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D70D1
Deuteranopia (green-blind)
#5B80C9
Tritanopia (blue-blind)
#C75782
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #c340cd;
/* rgb */ color: rgb(195, 64, 205);
/* oklch */ color: oklch(61.1% 0.229 324.9);
Tailwind
colors: {
  custom: {
    50: '#d980dd',
    500: '#c340cd',
    950: '#000000',
  },
}
SCSS
$custom: #c340cd;
$custom-light: #d980dd;
$custom-dark: #000000;
JSON
{
  "hex": "#c340cd",
  "rgb": {
    "r": 195,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 295.745,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.61145,
    "c": 0.22882,
    "h": 324.9
  },
  "luminance": 0.19677
}

Semantic roles & 50–950 ramp

primary
#C340CD
secondary
#9AD396
accent
#E24651
background
#FDF8FD
surface
#FBEFFB
border
#D4CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #C340CD

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

Preview Lab → · Contrast checker → · Palette generator →

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