#CA158E#CA158E

#CA158E is a mid, highly saturated pink. Relative luminance 0.150; OKLCH L 56.2% C 0.228 H 347.1°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#CA158E
RGBrgb(202, 21, 142)
HSLhsl(320, 81%, 44%)
HSVhsv(320, 90%, 79%)
CMYKcmyk(0%, 89.6%, 29.7%, 20.8%)
CIE-LABlab(45.70, 72.61, -19.17)
CIE-LCHlch(45.70, 75.10, 345.21°)
OKLaboklab(56.23% 0.2221 -0.0507)
OKLCHoklch(56.23% 0.228 347.1)
XYZxyz(29.5094, 15.0495, 26.9368)
Luminance0.1505 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA158E #15CA51
analogous
#AB15CA #CA158E #CA1533
triadic
#CA158E #8ECA15 #158ECA
tetradic
#CA158E #CAAB15 #15CA51 #1533CA
square
#CA158E #CAAB15 #15CA51 #1533CA
split-complementary
#CA158E #33CA15 #15CAAB
monochromatic
#5B0940 #930F67 #CA158E #EA32AD #EF6AC3

Accessibility & contrast

On white

5.24
#CA158E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#CA158E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CA158E
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA158E#FFFFFF#000000##FFFFFF
##CA158E1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5991
Deuteranopia (green-blind)
#70778A
Tritanopia (blue-blind)
#D90255
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ca158e;
/* rgb */ color: rgb(202, 21, 142);
/* oklch */ color: oklch(56.2% 0.228 347.1);
Tailwind
colors: {
  custom: {
    50: '#df70af',
    500: '#ca158e',
    950: '#000000',
  },
}
SCSS
$custom: #ca158e;
$custom-light: #df70af;
$custom-dark: #000000;
JSON
{
  "hex": "#ca158e",
  "rgb": {
    "r": 202,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 319.89,
    "s": 81.166,
    "l": 43.725
  },
  "oklch": {
    "l": 0.56231,
    "c": 0.22783,
    "h": 347.1
  },
  "luminance": 0.15046
}

Semantic roles & 50–950 ramp

primary
#CA158E
secondary
#66D58B
accent
#F87230
background
#FEF7FA
surface
#FDEDF4
border
#D5C8CE
text
#160910
muted
#847B7F

Preview Lab

Preview with #CA158E

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

Preview Lab → · Contrast checker → · Palette generator →

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