#C240A4#C240A4

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

Color values

HEX#C240A4
RGBrgb(194, 64, 164)
HSLhsl(314, 52%, 51%)
HSVhsv(314, 67%, 76%)
CMYKcmyk(0%, 67%, 15.5%, 23.9%)
CIE-LABlab(49.28, 62.01, -26.94)
CIE-LCHlch(49.28, 67.60, 336.52°)
OKLaboklab(58.87% 0.1832 -0.0729)
OKLCHoklch(58.87% 0.197 338.3)
XYZxyz(30.7830, 17.8192, 36.9330)
Luminance0.1782 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C240A4 #40C25E
analogous
#9F40C2 #C240A4 #C24063
triadic
#C240A4 #A4C240 #40A4C2
tetradic
#C240A4 #C29F40 #40C25E #4063C2
square
#C240A4 #C29F40 #40C25E #4063C2
split-complementary
#C240A4 #63C240 #40C29F
monochromatic
#672157 #95307E #C240A4 #D16EBA #E09DD0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C240A4#FFFFFF#000000##FFFFFF
##C240A41.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)
#4568A7
Deuteranopia (green-blind)
#6F7CA1
Tritanopia (blue-blind)
#CC456C
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c240a4;
/* rgb */ color: rgb(194, 64, 164);
/* oklch */ color: oklch(58.9% 0.197 338.3);
Tailwind
colors: {
  custom: {
    50: '#d87fbf',
    500: '#c240a4',
    950: '#000000',
  },
}
SCSS
$custom: #c240a4;
$custom-light: #d87fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#c240a4",
  "rgb": {
    "r": 194,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 313.846,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.58865,
    "c": 0.19715,
    "h": 338.3
  },
  "luminance": 0.17816
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C240A4

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

Preview Lab → · Contrast checker → · Palette generator →

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