#C340A9#C340A9

#C340A9 is a mid, highly saturated pink. Relative luminance 0.181; OKLCH L 59.2% C 0.201 H 336.7°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#C340A9
RGBrgb(195, 64, 169)
HSLhsl(312, 52%, 51%)
HSVhsv(312, 67%, 76%)
CMYKcmyk(0%, 67.2%, 13.3%, 23.5%)
CIE-LABlab(49.66, 63.00, -29.28)
CIE-LCHlch(49.66, 69.47, 335.08°)
OKLaboklab(59.25% 0.1849 -0.0795)
OKLCHoklch(59.25% 0.201 336.7)
XYZxyz(31.5010, 18.1362, 39.3700)
Luminance0.1813 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C340A9 #40C35A
analogous
#9B40C3 #C340A9 #C34068
triadic
#C340A9 #A9C340 #40A9C3
tetradic
#C340A9 #C39B40 #40C35A #4068C3
square
#C340A9 #C39B40 #40C35A #4068C3
split-complementary
#C340A9 #68C340 #40C39B
monochromatic
#68215A #972F82 #C340A9 #D26FBE #E09DD3

Accessibility & contrast

On white

4.54
#C340A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#C340A9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C340A9
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C340A9#FFFFFF#000000##000000
##C340A91.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4369AC
Deuteranopia (green-blind)
#6D7DA6
Tritanopia (blue-blind)
#CD476F
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #c340a9;
/* rgb */ color: rgb(195, 64, 169);
/* oklch */ color: oklch(59.2% 0.201 336.7);
Tailwind
colors: {
  custom: {
    50: '#d97fc3',
    500: '#c340a9',
    950: '#000000',
  },
}
SCSS
$custom: #c340a9;
$custom-light: #d97fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#c340a9",
  "rgb": {
    "r": 195,
    "g": 64,
    "b": 169
  },
  "hsl": {
    "h": 311.908,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.59249,
    "c": 0.20129,
    "h": 336.7
  },
  "luminance": 0.18133
}

Semantic roles & 50–950 ramp

primary
#C340A9
secondary
#92CC9E
accent
#DC694C
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B12
muted
#837C81

Preview Lab

Preview with #C340A9

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

Preview Lab → · Contrast checker → · Palette generator →

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