#C340AC#C340AC

#C340AC is a mid, highly saturated pink. Relative luminance 0.182; OKLCH L 59.4% C 0.203 H 335.6°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#C340AC
RGBrgb(195, 64, 172)
HSLhsl(311, 52%, 51%)
HSVhsv(311, 67%, 76%)
CMYKcmyk(0%, 67.2%, 11.8%, 23.5%)
CIE-LABlab(49.80, 63.44, -30.83)
CIE-LCHlch(49.80, 70.54, 334.09°)
OKLaboklab(59.39% 0.1853 -0.084)
OKLCHoklch(59.39% 0.203 335.6)
XYZxyz(31.7858, 18.2502, 40.8703)
Luminance0.1825 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C340AC #40C357
analogous
#9840C3 #C340AC #C3406A
triadic
#C340AC #ACC340 #40ACC3
tetradic
#C340AC #C39840 #40C357 #406AC3
square
#C340AC #C39840 #40C357 #406AC3
split-complementary
#C340AC #6AC340 #40C398
monochromatic
#68215B #972F84 #C340AC #D26FC0 #E09DD4

Accessibility & contrast

On white

4.52
#C340AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#C340AC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C340AC
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C340AC#FFFFFF#000000##000000
##C340AC1.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#416AAF
Deuteranopia (green-blind)
#6C7EA9
Tritanopia (blue-blind)
#CD4970
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #c340ac;
/* rgb */ color: rgb(195, 64, 172);
/* oklch */ color: oklch(59.4% 0.203 335.6);
Tailwind
colors: {
  custom: {
    50: '#d97fc5',
    500: '#c340ac',
    950: '#000000',
  },
}
SCSS
$custom: #c340ac;
$custom-light: #d97fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#c340ac",
  "rgb": {
    "r": 195,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 310.534,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.59393,
    "c": 0.20342,
    "h": 335.6
  },
  "luminance": 0.18247
}

Semantic roles & 50–950 ramp

primary
#C340AC
secondary
#92CC9D
accent
#DC654C
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B13
muted
#837C82

Preview Lab

Preview with #C340AC

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

Preview Lab → · Contrast checker → · Palette generator →

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