#C340C8#C340C8

#C340C8 is a mid, highly saturated purple. Relative luminance 0.194; OKLCH L 60.9% C 0.225 H 326.4°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#C340C8
RGBrgb(195, 64, 200)
HSLhsl(298, 55%, 52%)
HSVhsv(298, 68%, 78%)
CMYKcmyk(2.5%, 68%, 0%, 21.6%)
CIE-LABlab(51.20, 67.92, -44.91)
CIE-LCHlch(51.20, 81.42, 326.53°)
OKLaboklab(60.86% 0.1871 -0.1246)
OKLCHoklch(60.86% 0.225 326.4)
XYZxyz(34.7637, 19.4413, 56.5539)
Luminance0.1944 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C340C8 #45C840
analogous
#7F40C8 #C340C8 #C84089
triadic
#C340C8 #C8C340 #40C8C3
tetradic
#C340C8 #C87F40 #45C840 #4089C8
square
#C340C8 #C87F40 #45C840 #4089C8
split-complementary
#C340C8 #89C840 #40C87F
monochromatic
#6B206E #992D9D #C340C8 #D270D6 #E19FE3

Accessibility & contrast

On white

4.30
#C340C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#C340C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C340C8
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C340C8#FFFFFF#000000##000000
##C340C81.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#256FCC
Deuteranopia (green-blind)
#5E80C5
Tritanopia (blue-blind)
#C8557F
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c340c8;
/* rgb */ color: rgb(195, 64, 200);
/* oklch */ color: oklch(60.9% 0.225 326.4);
Tailwind
colors: {
  custom: {
    50: '#d980d9',
    500: '#c340c8',
    950: '#000000',
  },
}
SCSS
$custom: #c340c8;
$custom-light: #d980d9;
$custom-dark: #000000;
JSON
{
  "hex": "#c340c8",
  "rgb": {
    "r": 195,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 297.794,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.60861,
    "c": 0.2248,
    "h": 326.4
  },
  "luminance": 0.19439
}

Semantic roles & 50–950 ramp

primary
#C340C8
secondary
#96D094
accent
#DF494F
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B15
muted
#837C83

Preview Lab

Preview with #C340C8

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

Preview Lab → · Contrast checker → · Palette generator →

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