#C340D8#C340D8

#C340D8 is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.8% C 0.238 H 321.8°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#C340D8
RGBrgb(195, 64, 216)
HSLhsl(292, 66%, 55%)
HSVhsv(292, 70%, 85%)
CMYKcmyk(9.7%, 70.4%, 0%, 15.3%)
CIE-LABlab(52.09, 70.69, -52.64)
CIE-LCHlch(52.09, 88.14, 323.32°)
OKLaboklab(61.79% 0.1868 -0.1471)
OKLCHoklch(61.79% 0.238 321.8)
XYZxyz(36.7324, 20.2288, 66.9222)
Luminance0.2023 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C340D8 #55D840
analogous
#7740D8 #C340D8 #D840A1
triadic
#C340D8 #D8C340 #40D8C3
tetradic
#C340D8 #D87740 #55D840 #40A1D8
square
#C340D8 #D87740 #55D840 #40A1D8
split-complementary
#C340D8 #A1D840 #40D877
monochromatic
#741B83 #A225B6 #C340D8 #D373E2 #E3A6ED

Accessibility & contrast

On white

4.16
#C340D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#C340D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C340D8
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C340D8#FFFFFF#000000##000000
##C340D81.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073DC
Deuteranopia (green-blind)
#5481D4
Tritanopia (blue-blind)
#C55C88
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #c340d8;
/* rgb */ color: rgb(195, 64, 216);
/* oklch */ color: oklch(61.8% 0.238 321.8);
Tailwind
colors: {
  custom: {
    50: '#d980e5',
    500: '#c340d8',
    950: '#000000',
  },
}
SCSS
$custom: #c340d8;
$custom-light: #d980e5;
$custom-dark: #000000;
JSON
{
  "hex": "#c340d8",
  "rgb": {
    "r": 195,
    "g": 64,
    "b": 216
  },
  "hsl": {
    "h": 291.711,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.61791,
    "c": 0.23781,
    "h": 321.8
  },
  "luminance": 0.20227
}

Semantic roles & 50–950 ramp

primary
#C340D8
secondary
#A3DA9A
accent
#E93F56
background
#FDF8FE
surface
#FBEFFC
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #C340D8

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

Preview Lab → · Contrast checker → · Palette generator →

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