#C340C7#C340C7

#C340C7 is a mid, highly saturated purple. Relative luminance 0.194; OKLCH L 60.8% C 0.224 H 326.7°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#C340C7
RGBrgb(195, 64, 199)
HSLhsl(298, 55%, 52%)
HSVhsv(298, 68%, 78%)
CMYKcmyk(2%, 67.8%, 0%, 22%)
CIE-LABlab(51.15, 67.75, -44.42)
CIE-LCHlch(51.15, 81.01, 326.75°)
OKLaboklab(60.81% 0.1871 -0.1231)
OKLCHoklch(60.81% 0.224 326.7)
XYZxyz(34.6473, 19.3947, 55.9404)
Luminance0.1939 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C340C7 #44C740
analogous
#8040C7 #C340C7 #C74088
triadic
#C340C7 #C7C340 #40C7C3
tetradic
#C340C7 #C78040 #44C740 #4088C7
square
#C340C7 #C78040 #44C740 #4088C7
split-complementary
#C340C7 #88C740 #40C780
monochromatic
#6A206D #992E9C #C340C7 #D26FD5 #E19FE3

Accessibility & contrast

On white

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

On black

4.88
#C340C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C340C7
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C340C7#FFFFFF#000000##000000
##C340C71.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#276FCB
Deuteranopia (green-blind)
#5F80C4
Tritanopia (blue-blind)
#C8547F
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c340c7;
/* rgb */ color: rgb(195, 64, 199);
/* oklch */ color: oklch(60.8% 0.224 326.7);
Tailwind
colors: {
  custom: {
    50: '#d980d8',
    500: '#c340c7',
    950: '#000000',
  },
}
SCSS
$custom: #c340c7;
$custom-light: #d980d8;
$custom-dark: #000000;
JSON
{
  "hex": "#c340c7",
  "rgb": {
    "r": 195,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 298.222,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.60805,
    "c": 0.22401,
    "h": 326.7
  },
  "luminance": 0.19392
}

Semantic roles & 50–950 ramp

primary
#C340C7
secondary
#95CF94
accent
#DE4A4E
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #C340C7

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

Preview Lab → · Contrast checker → · Palette generator →

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