#C340C3#C340C3

#C340C3 is a mid, highly saturated purple. Relative luminance 0.192; OKLCH L 60.6% C 0.221 H 327.9°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#C340C3
RGBrgb(195, 64, 195)
HSLhsl(300, 52%, 51%)
HSVhsv(300, 67%, 76%)
CMYKcmyk(0%, 67.2%, 0%, 23.5%)
CIE-LABlab(50.93, 67.09, -42.44)
CIE-LCHlch(50.93, 79.38, 327.68°)
OKLaboklab(60.58% 0.187 -0.1174)
OKLCHoklch(60.58% 0.221 327.9)
XYZxyz(34.1889, 19.2114, 53.5266)
Luminance0.1921 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C340C3 #40C340
analogous
#8140C3 #C340C3 #C34081
triadic
#C340C3 #C3C340 #40C3C3
tetradic
#C340C3 #C38140 #40C340 #4081C3
square
#C340C3 #C38140 #40C340 #4081C3
split-complementary
#C340C3 #81C340 #40C381
monochromatic
#682168 #972F97 #C340C3 #D26FD2 #E09DE0

Accessibility & contrast

On white

4.34
#C340C3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#C340C3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C340C3
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C340C3#FFFFFF#000000##000000
##C340C31.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C6EC7
Deuteranopia (green-blind)
#617FC0
Tritanopia (blue-blind)
#C9537D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #c340c3;
/* rgb */ color: rgb(195, 64, 195);
/* oklch */ color: oklch(60.6% 0.221 327.9);
Tailwind
colors: {
  custom: {
    50: '#d980d5',
    500: '#c340c3',
    950: '#000000',
  },
}
SCSS
$custom: #c340c3;
$custom-light: #d980d5;
$custom-dark: #000000;
JSON
{
  "hex": "#c340c3",
  "rgb": {
    "r": 195,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 300,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.60584,
    "c": 0.22084,
    "h": 327.9
  },
  "luminance": 0.19209
}

Semantic roles & 50–950 ramp

primary
#C340C3
secondary
#92CC92
accent
#DC4C4C
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #C340C3

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

Preview Lab → · Contrast checker → · Palette generator →

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