#C240A2#C240A2

#C240A2 is a mid, vivid pink. Relative luminance 0.177; OKLCH L 58.8% C 0.196 H 339.1°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#C240A2
RGBrgb(194, 64, 162)
HSLhsl(315, 52%, 51%)
HSVhsv(315, 67%, 76%)
CMYKcmyk(0%, 67%, 16.5%, 23.9%)
CIE-LABlab(49.19, 61.72, -25.89)
CIE-LCHlch(49.19, 66.93, 337.24°)
OKLaboklab(58.77% 0.1829 -0.0699)
OKLCHoklch(58.77% 0.196 339.1)
XYZxyz(30.6038, 17.7475, 35.9892)
Luminance0.1774 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C240A2 #40C260
analogous
#A140C2 #C240A2 #C24061
triadic
#C240A2 #A2C240 #40A2C2
tetradic
#C240A2 #C2A140 #40C260 #4061C2
square
#C240A2 #C2A140 #40C260 #4061C2
split-complementary
#C240A2 #61C240 #40C2A1
monochromatic
#672156 #95307C #C240A2 #D16EB9 #E09DCF

Accessibility & contrast

On white

4.62
#C240A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#C240A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #C240A2
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C240A2#FFFFFF#000000##FFFFFF
##C240A21.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4668A5
Deuteranopia (green-blind)
#6F7C9F
Tritanopia (blue-blind)
#CD456B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #c240a2;
/* rgb */ color: rgb(194, 64, 162);
/* oklch */ color: oklch(58.8% 0.196 339.1);
Tailwind
colors: {
  custom: {
    50: '#d87ebd',
    500: '#c240a2',
    950: '#000000',
  },
}
SCSS
$custom: #c240a2;
$custom-light: #d87ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#c240a2",
  "rgb": {
    "r": 194,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 314.769,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.58772,
    "c": 0.19578,
    "h": 339.1
  },
  "luminance": 0.17745
}

Semantic roles & 50–950 ramp

primary
#C240A2
secondary
#92CCA0
accent
#DB704D
background
#FDF8FB
surface
#FBEFF6
border
#D4CAD0
text
#150B12
muted
#837C81

Preview Lab

Preview with #C240A2

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

Preview Lab → · Contrast checker → · Palette generator →

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