#C340A1#C340A1

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

Color values

HEX#C340A1
RGBrgb(195, 64, 161)
HSLhsl(316, 52%, 51%)
HSVhsv(316, 67%, 76%)
CMYKcmyk(0%, 67.2%, 17.4%, 23.5%)
CIE-LABlab(49.31, 61.83, -25.10)
CIE-LCHlch(49.31, 66.73, 337.91°)
OKLaboklab(58.88% 0.1837 -0.0677)
OKLCHoklch(58.88% 0.196 339.8)
XYZxyz(30.7728, 17.8449, 35.5350)
Luminance0.1784 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C340A1 #40C362
analogous
#A440C3 #C340A1 #C3405F
triadic
#C340A1 #A1C340 #40A1C3
tetradic
#C340A1 #C3A440 #40C362 #405FC3
square
#C340A1 #C3A440 #40C362 #405FC3
split-complementary
#C340A1 #5FC340 #40C3A4
monochromatic
#682155 #972F7C #C340A1 #D26FB8 #E09DCF

Accessibility & contrast

On white

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

On black

4.57
#C340A1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##C340A1#FFFFFF#000000##FFFFFF
##C340A11.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4868A4
Deuteranopia (green-blind)
#707D9E
Tritanopia (blue-blind)
#CE446B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c340a1;
/* rgb */ color: rgb(195, 64, 161);
/* oklch */ color: oklch(58.9% 0.196 339.8);
Tailwind
colors: {
  custom: {
    50: '#d97fbd',
    500: '#c340a1',
    950: '#000000',
  },
}
SCSS
$custom: #c340a1;
$custom-light: #d97fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#c340a1",
  "rgb": {
    "r": 195,
    "g": 64,
    "b": 161
  },
  "hsl": {
    "h": 315.573,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.58876,
    "c": 0.19577,
    "h": 339.8
  },
  "luminance": 0.17842
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C340A1

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

Preview Lab → · Contrast checker → · Palette generator →

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