#C340A2#C340A2

#C340A2 is a mid, vivid pink. Relative luminance 0.179; OKLCH L 58.9% C 0.196 H 339.4°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#C340A2
RGBrgb(195, 64, 162)
HSLhsl(315, 52%, 51%)
HSVhsv(315, 67%, 76%)
CMYKcmyk(0%, 67.2%, 16.9%, 23.5%)
CIE-LABlab(49.35, 61.98, -25.62)
CIE-LCHlch(49.35, 67.06, 337.54°)
OKLaboklab(58.92% 0.1839 -0.0692)
OKLCHoklch(58.92% 0.196 339.4)
XYZxyz(30.8614, 17.8804, 36.0013)
Luminance0.1788 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C340A2 #40C361
analogous
#A340C3 #C340A2 #C34060
triadic
#C340A2 #A2C340 #40A2C3
tetradic
#C340A2 #C3A340 #40C361 #4060C3
square
#C340A2 #C3A340 #40C361 #4060C3
split-complementary
#C340A2 #60C340 #40C3A3
monochromatic
#682156 #972F7D #C340A2 #D26FB9 #E09DCF

Accessibility & contrast

On white

4.59
#C340A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#C340A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #C340A2
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C340A2#FFFFFF#000000##FFFFFF
##C340A21.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4768A5
Deuteranopia (green-blind)
#707D9F
Tritanopia (blue-blind)
#CE446B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c340a2;
/* rgb */ color: rgb(195, 64, 162);
/* oklch */ color: oklch(58.9% 0.196 339.4);
Tailwind
colors: {
  custom: {
    50: '#d97fbd',
    500: '#c340a2',
    950: '#000000',
  },
}
SCSS
$custom: #c340a2;
$custom-light: #d97fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#c340a2",
  "rgb": {
    "r": 195,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 315.115,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.58922,
    "c": 0.19644,
    "h": 339.4
  },
  "luminance": 0.17878
}

Semantic roles & 50–950 ramp

primary
#C340A2
secondary
#92CCA1
accent
#DC704C
background
#FDF8FB
surface
#FBEFF6
border
#D4CAD0
text
#150B12
muted
#837C81

Preview Lab

Preview with #C340A2

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

Preview Lab → · Contrast checker → · Palette generator →

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