#C340A7#C340A7

#C340A7 is a mid, vivid pink. Relative luminance 0.181; OKLCH L 59.2% C 0.200 H 337.5°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#C340A7
RGBrgb(195, 64, 167)
HSLhsl(313, 52%, 51%)
HSVhsv(313, 67%, 76%)
CMYKcmyk(0%, 67.2%, 14.4%, 23.5%)
CIE-LABlab(49.57, 62.70, -28.24)
CIE-LCHlch(49.57, 68.77, 335.76°)
OKLaboklab(59.15% 0.1846 -0.0766)
OKLCHoklch(59.15% 0.2 337.5)
XYZxyz(31.3147, 18.0617, 38.3887)
Luminance0.1806 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C340A7 #40C35C
analogous
#9D40C3 #C340A7 #C34066
triadic
#C340A7 #A7C340 #40A7C3
tetradic
#C340A7 #C39D40 #40C35C #4066C3
square
#C340A7 #C39D40 #40C35C #4066C3
split-complementary
#C340A7 #66C340 #40C39D
monochromatic
#682159 #972F80 #C340A7 #D26FBC #E09DD2

Accessibility & contrast

On white

4.55
#C340A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#C340A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C340A7
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C340A7#FFFFFF#000000##000000
##C340A71.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4469AA
Deuteranopia (green-blind)
#6E7DA4
Tritanopia (blue-blind)
#CD466E
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #c340a7;
/* rgb */ color: rgb(195, 64, 167);
/* oklch */ color: oklch(59.2% 0.200 337.5);
Tailwind
colors: {
  custom: {
    50: '#d97fc1',
    500: '#c340a7',
    950: '#000000',
  },
}
SCSS
$custom: #c340a7;
$custom-light: #d97fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#c340a7",
  "rgb": {
    "r": 195,
    "g": 64,
    "b": 167
  },
  "hsl": {
    "h": 312.824,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.59154,
    "c": 0.19988,
    "h": 337.5
  },
  "luminance": 0.18059
}

Semantic roles & 50–950 ramp

primary
#C340A7
secondary
#92CC9F
accent
#DC6B4C
background
#FDF8FB
surface
#FBEFF7
border
#D4CAD0
text
#150B12
muted
#837C81

Preview Lab

Preview with #C340A7

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

Preview Lab → · Contrast checker → · Palette generator →

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