#C340AB#C340AB

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

Color values

HEX#C340AB
RGBrgb(195, 64, 171)
HSLhsl(311, 52%, 51%)
HSVhsv(311, 67%, 76%)
CMYKcmyk(0%, 67.2%, 12.3%, 23.5%)
CIE-LABlab(49.75, 63.30, -30.31)
CIE-LCHlch(49.75, 70.18, 334.41°)
OKLaboklab(59.35% 0.1852 -0.0825)
OKLCHoklch(59.35% 0.203 336)
XYZxyz(31.6902, 18.2119, 40.3664)
Luminance0.1821 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C340AB #40C358
analogous
#9940C3 #C340AB #C34069
triadic
#C340AB #ABC340 #40ABC3
tetradic
#C340AB #C39940 #40C358 #4069C3
square
#C340AB #C39940 #40C358 #4069C3
split-complementary
#C340AB #69C340 #40C399
monochromatic
#68215B #972F84 #C340AB #D26FBF #E09DD4

Accessibility & contrast

On white

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

On black

4.64
#C340AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C340AB
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C340AB#FFFFFF#000000##000000
##C340AB1.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#416AAE
Deuteranopia (green-blind)
#6D7DA8
Tritanopia (blue-blind)
#CD4870
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #c340ab;
/* rgb */ color: rgb(195, 64, 171);
/* oklch */ color: oklch(59.3% 0.203 336.0);
Tailwind
colors: {
  custom: {
    50: '#d97fc4',
    500: '#c340ab',
    950: '#000000',
  },
}
SCSS
$custom: #c340ab;
$custom-light: #d97fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#c340ab",
  "rgb": {
    "r": 195,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 310.992,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.59345,
    "c": 0.20271,
    "h": 336
  },
  "luminance": 0.18209
}

Semantic roles & 50–950 ramp

primary
#C340AB
secondary
#92CC9D
accent
#DC664C
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B12
muted
#837C81

Preview Lab

Preview with #C340AB

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

Preview Lab → · Contrast checker → · Palette generator →

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