#C240A8#C240A8

#C240A8 is a mid, vivid pink. Relative luminance 0.180; OKLCH L 59.1% C 0.200 H 336.8°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#C240A8
RGBrgb(194, 64, 168)
HSLhsl(312, 52%, 51%)
HSVhsv(312, 67%, 76%)
CMYKcmyk(0%, 67%, 13.4%, 23.9%)
CIE-LABlab(49.45, 62.59, -29.02)
CIE-LCHlch(49.45, 68.99, 335.13°)
OKLaboklab(59.05% 0.1838 -0.0788)
OKLCHoklch(59.05% 0.2 336.8)
XYZxyz(31.1499, 17.9660, 38.8654)
Luminance0.1796 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C240A8 #40C25A
analogous
#9B40C2 #C240A8 #C24067
triadic
#C240A8 #A8C240 #40A8C2
tetradic
#C240A8 #C29B40 #40C25A #4067C2
square
#C240A8 #C29B40 #40C25A #4067C2
split-complementary
#C240A8 #67C240 #40C29B
monochromatic
#672159 #953081 #C240A8 #D16EBD #E09DD2

Accessibility & contrast

On white

4.57
#C240A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#C240A8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C240A8
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C240A8#FFFFFF#000000##000000
##C240A81.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #c240a8;
/* rgb */ color: rgb(194, 64, 168);
/* oklch */ color: oklch(59.1% 0.200 336.8);
Tailwind
colors: {
  custom: {
    50: '#d87fc2',
    500: '#c240a8',
    950: '#000000',
  },
}
SCSS
$custom: #c240a8;
$custom-light: #d87fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#c240a8",
  "rgb": {
    "r": 194,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 312,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.59053,
    "c": 0.19995,
    "h": 336.8
  },
  "luminance": 0.17963
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C240A8

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

Preview Lab → · Contrast checker → · Palette generator →

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