#CA27A2#CA27A2

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

Color values

HEX#CA27A2
RGBrgb(202, 39, 162)
HSLhsl(315, 68%, 47%)
HSVhsv(315, 81%, 79%)
CMYKcmyk(0%, 80.7%, 19.8%, 20.8%)
CIE-LABlab(47.78, 71.50, -27.98)
CIE-LCHlch(47.78, 76.78, 338.63°)
OKLaboklab(58.01% 0.2142 -0.0755)
OKLCHoklch(58.01% 0.227 340.6)
XYZxyz(31.6053, 16.6195, 35.7189)
Luminance0.1662 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA27A2 #27CA4F
analogous
#A127CA #CA27A2 #CA2750
triadic
#CA27A2 #A2CA27 #27A2CA
tetradic
#CA27A2 #CAA127 #27CA4F #2750CA
square
#CA27A2 #CAA127 #27CA4F #2750CA
split-complementary
#CA27A2 #50CA27 #27CAA1
monochromatic
#631350 #971D79 #CA27A2 #DD51BB #E784CF

Accessibility & contrast

On white

4.86
#CA27A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #CA27A2
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA27A2#FFFFFF#000000##FFFFFF
##CA27A21.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3661A5
Deuteranopia (green-blind)
#6D7A9E
Tritanopia (blue-blind)
#D62D64
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ca27a2;
/* rgb */ color: rgb(202, 39, 162);
/* oklch */ color: oklch(58.0% 0.227 340.6);
Tailwind
colors: {
  custom: {
    50: '#df75be',
    500: '#ca27a2',
    950: '#000000',
  },
}
SCSS
$custom: #ca27a2;
$custom-light: #df75be;
$custom-dark: #000000;
JSON
{
  "hex": "#ca27a2",
  "rgb": {
    "r": 202,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 314.724,
    "s": 67.635,
    "l": 47.255
  },
  "oklch": {
    "l": 0.58007,
    "c": 0.22714,
    "h": 340.6
  },
  "luminance": 0.16616
}

Semantic roles & 50–950 ramp

primary
#CA27A2
secondary
#7CD091
accent
#EB683D
background
#FEF7FB
surface
#FCEEF6
border
#D5C9D0
text
#160A12
muted
#847C81

Preview Lab

Preview with #CA27A2

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

Preview Lab → · Contrast checker → · Palette generator →

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