#C340AD#C340AD

#C340AD is a mid, highly saturated pink. Relative luminance 0.183; OKLCH L 59.4% C 0.204 H 335.3°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#C340AD
RGBrgb(195, 64, 173)
HSLhsl(310, 52%, 51%)
HSVhsv(310, 67%, 76%)
CMYKcmyk(0%, 67.2%, 11.3%, 23.5%)
CIE-LABlab(49.84, 63.60, -31.34)
CIE-LCHlch(49.84, 70.90, 333.77°)
OKLaboklab(59.44% 0.1854 -0.0854)
OKLCHoklch(59.44% 0.204 335.3)
XYZxyz(31.8822, 18.2887, 41.3780)
Luminance0.1829 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C340AD #40C356
analogous
#9740C3 #C340AD #C3406B
triadic
#C340AD #ADC340 #40ADC3
tetradic
#C340AD #C39740 #40C356 #406BC3
square
#C340AD #C39740 #40C356 #406BC3
split-complementary
#C340AD #6BC340 #40C397
monochromatic
#68215C #972F85 #C340AD #D26FC1 #E09DD5

Accessibility & contrast

On white

4.51
#C340AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#C340AD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C340AD
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C340AD#FFFFFF#000000##000000
##C340AD1.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#406AB0
Deuteranopia (green-blind)
#6C7EAA
Tritanopia (blue-blind)
#CC4971
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #c340ad;
/* rgb */ color: rgb(195, 64, 173);
/* oklch */ color: oklch(59.4% 0.204 335.3);
Tailwind
colors: {
  custom: {
    50: '#d97fc6',
    500: '#c340ad',
    950: '#000000',
  },
}
SCSS
$custom: #c340ad;
$custom-light: #d97fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#c340ad",
  "rgb": {
    "r": 195,
    "g": 64,
    "b": 173
  },
  "hsl": {
    "h": 310.076,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.59442,
    "c": 0.20414,
    "h": 335.3
  },
  "luminance": 0.18286
}

Semantic roles & 50–950 ramp

primary
#C340AD
secondary
#92CC9C
accent
#DC644C
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #C340AD

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

Preview Lab → · Contrast checker → · Palette generator →

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