#CA27AB#CA27AB

#CA27AB is a mid, highly saturated pink. Relative luminance 0.169; OKLCH L 58.4% C 0.233 H 337.6°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#CA27AB
RGBrgb(202, 39, 171)
HSLhsl(311, 68%, 47%)
HSVhsv(311, 81%, 79%)
CMYKcmyk(0%, 80.7%, 15.3%, 20.8%)
CIE-LABlab(48.20, 72.68, -32.65)
CIE-LCHlch(48.20, 79.68, 335.81°)
OKLaboklab(58.45% 0.2151 -0.0889)
OKLCHoklch(58.45% 0.233 337.6)
XYZxyz(32.4341, 16.9511, 40.0839)
Luminance0.1695 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA27AB #27CA46
analogous
#9827CA #CA27AB #CA275A
triadic
#CA27AB #ABCA27 #27ABCA
tetradic
#CA27AB #CA9827 #27CA46 #275ACA
square
#CA27AB #CA9827 #27CA46 #275ACA
split-complementary
#CA27AB #5ACA27 #27CA98
monochromatic
#631354 #971D80 #CA27AB #DD51C3 #E784D4

Accessibility & contrast

On white

4.78
#CA27AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#CA27AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CA27AB
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA27AB#FFFFFF#000000##FFFFFF
##CA27AB1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E63AE
Deuteranopia (green-blind)
#697BA7
Tritanopia (blue-blind)
#D53369
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ca27ab;
/* rgb */ color: rgb(202, 39, 171);
/* oklch */ color: oklch(58.4% 0.233 337.6);
Tailwind
colors: {
  custom: {
    50: '#df76c4',
    500: '#ca27ab',
    950: '#000000',
  },
}
SCSS
$custom: #ca27ab;
$custom-light: #df76c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ca27ab",
  "rgb": {
    "r": 202,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 311.411,
    "s": 67.635,
    "l": 47.255
  },
  "oklch": {
    "l": 0.58446,
    "c": 0.23273,
    "h": 337.6
  },
  "luminance": 0.16948
}

Semantic roles & 50–950 ramp

primary
#CA27AB
secondary
#7CD08C
accent
#EB5E3D
background
#FEF7FC
surface
#FCEEF8
border
#D5C9D1
text
#160A13
muted
#847C82

Preview Lab

Preview with #CA27AB

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

Preview Lab → · Contrast checker → · Palette generator →

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