#C340D9#C340D9

#C340D9 is a mid, highly saturated purple. Relative luminance 0.203; OKLCH L 61.9% C 0.239 H 321.5°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#C340D9
RGBrgb(195, 64, 217)
HSLhsl(291, 67%, 55%)
HSVhsv(291, 71%, 85%)
CMYKcmyk(10.1%, 70.5%, 0%, 14.9%)
CIE-LABlab(52.15, 70.87, -53.12)
CIE-LCHlch(52.15, 88.56, 323.15°)
OKLaboklab(61.85% 0.1868 -0.1485)
OKLCHoklch(61.85% 0.239 321.5)
XYZxyz(36.8621, 20.2806, 67.6051)
Luminance0.2028 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C340D9 #56D940
analogous
#7740D9 #C340D9 #D940A2
triadic
#C340D9 #D9C340 #40D9C3
tetradic
#C340D9 #D97740 #56D940 #40A2D9
square
#C340D9 #D97740 #56D940 #40A2D9
split-complementary
#C340D9 #A2D940 #40D977
monochromatic
#751A84 #A224B7 #C340D9 #D373E3 #E3A6ED

Accessibility & contrast

On white

4.15
#C340D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#C340D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C340D9
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C340D9#FFFFFF#000000##000000
##C340D91.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073DD
Deuteranopia (green-blind)
#5381D5
Tritanopia (blue-blind)
#C55C89
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #c340d9;
/* rgb */ color: rgb(195, 64, 217);
/* oklch */ color: oklch(61.9% 0.239 321.5);
Tailwind
colors: {
  custom: {
    50: '#d980e5',
    500: '#c340d9',
    950: '#000000',
  },
}
SCSS
$custom: #c340d9;
$custom-light: #d980e5;
$custom-dark: #000000;
JSON
{
  "hex": "#c340d9",
  "rgb": {
    "r": 195,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 291.373,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.61851,
    "c": 0.23863,
    "h": 321.5
  },
  "luminance": 0.20279
}

Semantic roles & 50–950 ramp

primary
#C340D9
secondary
#A4DA9A
accent
#EA3E57
background
#FDF8FE
surface
#FBEFFC
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #C340D9

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

Preview Lab → · Contrast checker → · Palette generator →

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