#CA15B8#CA15B8

#CA15B8 is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 58.3% C 0.252 H 333.4°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#CA15B8
RGBrgb(202, 21, 184)
HSLhsl(306, 81%, 44%)
HSVhsv(306, 90%, 79%)
CMYKcmyk(0%, 89.6%, 8.9%, 20.8%)
CIE-LABlab(47.70, 77.85, -41.09)
CIE-LCHlch(47.70, 88.03, 332.17°)
OKLaboklab(58.3% 0.2256 -0.1131)
OKLCHoklch(58.3% 0.252 333.4)
XYZxyz(33.2773, 16.5567, 46.7813)
Luminance0.1655 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA15B8 #15CA27
analogous
#8115CA #CA15B8 #CA155D
triadic
#CA15B8 #B8CA15 #15B8CA
tetradic
#CA15B8 #CA8115 #15CA27 #155DCA
square
#CA15B8 #CA8115 #15CA27 #155DCA
split-complementary
#CA15B8 #5DCA15 #15CA81
monochromatic
#5B0953 #930F86 #CA15B8 #EA32D8 #EF6AE2

Accessibility & contrast

On white

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

On black

4.31
#CA15B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##CA15B8#FFFFFF#000000##FFFFFF
##CA15B81.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BC
Deuteranopia (green-blind)
#5F7AB4
Tritanopia (blue-blind)
#D4326D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ca15b8;
/* rgb */ color: rgb(202, 21, 184);
/* oklch */ color: oklch(58.3% 0.252 333.4);
Tailwind
colors: {
  custom: {
    50: '#df72ce',
    500: '#ca15b8',
    950: '#000000',
  },
}
SCSS
$custom: #ca15b8;
$custom-light: #df72ce;
$custom-dark: #000000;
JSON
{
  "hex": "#ca15b8",
  "rgb": {
    "r": 202,
    "g": 21,
    "b": 184
  },
  "hsl": {
    "h": 305.967,
    "s": 81.166,
    "l": 43.725
  },
  "oklch": {
    "l": 0.58303,
    "c": 0.25236,
    "h": 333.4
  },
  "luminance": 0.16554
}

Semantic roles & 50–950 ramp

primary
#CA15B8
secondary
#66D571
accent
#F84430
background
#FEF7FC
surface
#FCEEF9
border
#D5C9D2
text
#160913
muted
#847B82

Preview Lab

Preview with #CA15B8

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

Preview Lab → · Contrast checker → · Palette generator →

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