#CA27A1#CA27A1

#CA27A1 is a mid, highly saturated pink. Relative luminance 0.166; OKLCH L 58.0% C 0.227 H 340.9°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#CA27A1
RGBrgb(202, 39, 161)
HSLhsl(315, 68%, 47%)
HSVhsv(315, 81%, 79%)
CMYKcmyk(0%, 80.7%, 20.3%, 20.8%)
CIE-LABlab(47.73, 71.37, -27.45)
CIE-LCHlch(47.73, 76.47, 338.96°)
OKLaboklab(57.96% 0.2141 -0.074)
OKLCHoklch(57.96% 0.227 340.9)
XYZxyz(31.5167, 16.5841, 35.2526)
Luminance0.1658 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA27A1 #27CA50
analogous
#A227CA #CA27A1 #CA2750
triadic
#CA27A1 #A1CA27 #27A1CA
tetradic
#CA27A1 #CAA227 #27CA50 #2750CA
square
#CA27A1 #CAA227 #27CA50 #2750CA
split-complementary
#CA27A1 #50CA27 #27CAA2
monochromatic
#63134F #971D78 #CA27A1 #DD51BA #E784CE

Accessibility & contrast

On white

4.87
#CA27A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#CA27A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CA27A1
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA27A1#FFFFFF#000000##FFFFFF
##CA27A11.004.874.324.87
#FFFFFF4.871.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3761A4
Deuteranopia (green-blind)
#6D7A9D
Tritanopia (blue-blind)
#D72C63
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ca27a1;
/* rgb */ color: rgb(202, 39, 161);
/* oklch */ color: oklch(58.0% 0.227 340.9);
Tailwind
colors: {
  custom: {
    50: '#df75bd',
    500: '#ca27a1',
    950: '#000000',
  },
}
SCSS
$custom: #ca27a1;
$custom-light: #df75bd;
$custom-dark: #000000;
JSON
{
  "hex": "#ca27a1",
  "rgb": {
    "r": 202,
    "g": 39,
    "b": 161
  },
  "hsl": {
    "h": 315.092,
    "s": 67.635,
    "l": 47.255
  },
  "oklch": {
    "l": 0.57959,
    "c": 0.22653,
    "h": 340.9
  },
  "luminance": 0.16581
}

Semantic roles & 50–950 ramp

primary
#CA27A1
secondary
#7CD092
accent
#EB693D
background
#FEF7FB
surface
#FCEEF6
border
#D5C9D0
text
#160A12
muted
#847C81

Preview Lab

Preview with #CA27A1

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

Preview Lab → · Contrast checker → · Palette generator →

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