#C340C2#C340C2

#C340C2 is a mid, highly saturated purple. Relative luminance 0.192; OKLCH L 60.5% C 0.220 H 328.2°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#C340C2
RGBrgb(195, 64, 194)
HSLhsl(300, 52%, 51%)
HSVhsv(300, 67%, 76%)
CMYKcmyk(0%, 67.2%, 0.5%, 23.5%)
CIE-LABlab(50.88, 66.92, -41.95)
CIE-LCHlch(50.88, 78.98, 327.92°)
OKLaboklab(60.53% 0.187 -0.116)
OKLCHoklch(60.53% 0.22 328.2)
XYZxyz(34.0763, 19.1663, 52.9331)
Luminance0.1916 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C340C2 #40C341
analogous
#8240C3 #C340C2 #C34080
triadic
#C340C2 #C2C340 #40C2C3
tetradic
#C340C2 #C38240 #40C341 #4080C3
square
#C340C2 #C38240 #40C341 #4080C3
split-complementary
#C340C2 #80C340 #40C382
monochromatic
#682167 #972F96 #C340C2 #D26FD1 #E09DE0

Accessibility & contrast

On white

4.35
#C340C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#C340C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C340C2
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C340C2#FFFFFF#000000##000000
##C340C21.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D6EC6
Deuteranopia (green-blind)
#627FBF
Tritanopia (blue-blind)
#C9527C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #c340c2;
/* rgb */ color: rgb(195, 64, 194);
/* oklch */ color: oklch(60.5% 0.220 328.2);
Tailwind
colors: {
  custom: {
    50: '#d980d5',
    500: '#c340c2',
    950: '#000000',
  },
}
SCSS
$custom: #c340c2;
$custom-light: #d980d5;
$custom-dark: #000000;
JSON
{
  "hex": "#c340c2",
  "rgb": {
    "r": 195,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 300.458,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.60529,
    "c": 0.22004,
    "h": 328.2
  },
  "luminance": 0.19164
}

Semantic roles & 50–950 ramp

primary
#C340C2
secondary
#92CC93
accent
#DC4D4C
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #C340C2

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

Preview Lab → · Contrast checker → · Palette generator →

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