#C340A0#C340A0

#C340A0 is a mid, vivid pink. Relative luminance 0.178; OKLCH L 58.8% C 0.195 H 340.2°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#C340A0
RGBrgb(195, 64, 160)
HSLhsl(316, 52%, 51%)
HSVhsv(316, 67%, 76%)
CMYKcmyk(0%, 67.2%, 17.9%, 23.5%)
CIE-LABlab(49.26, 61.69, -24.57)
CIE-LCHlch(49.26, 66.41, 338.28°)
OKLaboklab(58.83% 0.1835 -0.0662)
OKLCHoklch(58.83% 0.195 340.2)
XYZxyz(30.6850, 17.8098, 35.0725)
Luminance0.1781 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C340A0 #40C363
analogous
#A540C3 #C340A0 #C3405E
triadic
#C340A0 #A0C340 #40A0C3
tetradic
#C340A0 #C3A540 #40C363 #405EC3
square
#C340A0 #C3A540 #40C363 #405EC3
split-complementary
#C340A0 #5EC340 #40C3A5
monochromatic
#682155 #972F7B #C340A0 #D26FB7 #E09DCE

Accessibility & contrast

On white

4.60
#C340A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#C340A0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #C340A0
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C340A0#FFFFFF#000000##FFFFFF
##C340A01.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4868A3
Deuteranopia (green-blind)
#717D9D
Tritanopia (blue-blind)
#CE436A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c340a0;
/* rgb */ color: rgb(195, 64, 160);
/* oklch */ color: oklch(58.8% 0.195 340.2);
Tailwind
colors: {
  custom: {
    50: '#d97fbc',
    500: '#c340a0',
    950: '#000000',
  },
}
SCSS
$custom: #c340a0;
$custom-light: #d97fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#c340a0",
  "rgb": {
    "r": 195,
    "g": 64,
    "b": 160
  },
  "hsl": {
    "h": 316.031,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.58831,
    "c": 0.1951,
    "h": 340.2
  },
  "luminance": 0.17807
}

Semantic roles & 50–950 ramp

primary
#C340A0
secondary
#92CCA2
accent
#DC734C
background
#FDF8FB
surface
#FBEFF6
border
#D4CAD0
text
#150B12
muted
#837C81

Preview Lab

Preview with #C340A0

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

Preview Lab → · Contrast checker → · Palette generator →

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