#C340A8#C340A8

#C340A8 is a mid, highly saturated pink. Relative luminance 0.181; OKLCH L 59.2% C 0.201 H 337.1°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#C340A8
RGBrgb(195, 64, 168)
HSLhsl(312, 52%, 51%)
HSVhsv(312, 67%, 76%)
CMYKcmyk(0%, 67.2%, 13.8%, 23.5%)
CIE-LABlab(49.62, 62.85, -28.76)
CIE-LCHlch(49.62, 69.12, 335.41°)
OKLaboklab(59.2% 0.1848 -0.0781)
OKLCHoklch(59.2% 0.201 337.1)
XYZxyz(31.4075, 18.0988, 38.8775)
Luminance0.1810 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C340A8 #40C35B
analogous
#9C40C3 #C340A8 #C34067
triadic
#C340A8 #A8C340 #40A8C3
tetradic
#C340A8 #C39C40 #40C35B #4067C3
square
#C340A8 #C39C40 #40C35B #4067C3
split-complementary
#C340A8 #67C340 #40C39C
monochromatic
#682159 #972F81 #C340A8 #D26FBD #E09DD2

Accessibility & contrast

On white

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

On black

4.62
#C340A8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C340A8
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C340A8#FFFFFF#000000##000000
##C340A81.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4369AB
Deuteranopia (green-blind)
#6E7DA5
Tritanopia (blue-blind)
#CD476E
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #c340a8;
/* rgb */ color: rgb(195, 64, 168);
/* oklch */ color: oklch(59.2% 0.201 337.1);
Tailwind
colors: {
  custom: {
    50: '#d97fc2',
    500: '#c340a8',
    950: '#000000',
  },
}
SCSS
$custom: #c340a8;
$custom-light: #d97fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#c340a8",
  "rgb": {
    "r": 195,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 312.366,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.59201,
    "c": 0.20058,
    "h": 337.1
  },
  "luminance": 0.18096
}

Semantic roles & 50–950 ramp

primary
#C340A8
secondary
#92CC9E
accent
#DC6A4C
background
#FDF8FB
surface
#FBEFF7
border
#D4CAD0
text
#150B12
muted
#837C81

Preview Lab

Preview with #C340A8

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

Preview Lab → · Contrast checker → · Palette generator →

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