#C240AB#C240AB

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

Color values

HEX#C240AB
RGBrgb(194, 64, 171)
HSLhsl(311, 52%, 51%)
HSVhsv(311, 67%, 76%)
CMYKcmyk(0%, 67%, 11.9%, 23.9%)
CIE-LABlab(49.59, 63.04, -30.57)
CIE-LCHlch(49.59, 70.07, 334.13°)
OKLaboklab(59.2% 0.1842 -0.0832)
OKLCHoklch(59.2% 0.202 335.7)
XYZxyz(31.4326, 18.0791, 40.3543)
Luminance0.1808 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C240AB #40C257
analogous
#9840C2 #C240AB #C2406A
triadic
#C240AB #ABC240 #40ABC2
tetradic
#C240AB #C29840 #40C257 #406AC2
square
#C240AB #C29840 #40C257 #406AC2
split-complementary
#C240AB #6AC240 #40C298
monochromatic
#67215A #953083 #C240AB #D16EBF #E09DD4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##C240AB#FFFFFF#000000##000000
##C240AB1.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)
#4169AE
Deuteranopia (green-blind)
#6C7DA8
Tritanopia (blue-blind)
#CC4870
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #c240ab;
/* rgb */ color: rgb(194, 64, 171);
/* oklch */ color: oklch(59.2% 0.202 335.7);
Tailwind
colors: {
  custom: {
    50: '#d87fc4',
    500: '#c240ab',
    950: '#000000',
  },
}
SCSS
$custom: #c240ab;
$custom-light: #d87fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#c240ab",
  "rgb": {
    "r": 194,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 310.615,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.59198,
    "c": 0.20209,
    "h": 335.7
  },
  "luminance": 0.18076
}

Semantic roles & 50–950 ramp

primary
#C240AB
secondary
#92CC9C
accent
#DB664D
background
#FDF8FC
surface
#FBEFF8
border
#D4CAD1
text
#150B12
muted
#837C81

Preview Lab

Preview with #C240AB

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

Preview Lab → · Contrast checker → · Palette generator →

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