#CA158F#CA158F

#CA158F is a mid, highly saturated pink. Relative luminance 0.151; OKLCH L 56.3% C 0.228 H 346.8°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#CA158F
RGBrgb(202, 21, 143)
HSLhsl(320, 81%, 44%)
HSVhsv(320, 90%, 79%)
CMYKcmyk(0%, 89.6%, 29.2%, 20.8%)
CIE-LABlab(45.74, 72.72, -19.71)
CIE-LCHlch(45.74, 75.35, 344.83°)
OKLaboklab(56.27% 0.2223 -0.0522)
OKLCHoklch(56.27% 0.228 346.8)
XYZxyz(29.5848, 15.0796, 27.3340)
Luminance0.1508 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA158F #15CA50
analogous
#AA15CA #CA158F #CA1534
triadic
#CA158F #8FCA15 #158FCA
tetradic
#CA158F #CAAA15 #15CA50 #1534CA
square
#CA158F #CAAA15 #15CA50 #1534CA
split-complementary
#CA158F #34CA15 #15CAAA
monochromatic
#5B0941 #930F68 #CA158F #EA32AE #EF6AC4

Accessibility & contrast

On white

5.23
#CA158F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#CA158F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #CA158F
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA158F#FFFFFF#000000##FFFFFF
##CA158F1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395992
Deuteranopia (green-blind)
#70778B
Tritanopia (blue-blind)
#D90455
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ca158f;
/* rgb */ color: rgb(202, 21, 143);
/* oklch */ color: oklch(56.3% 0.228 346.8);
Tailwind
colors: {
  custom: {
    50: '#df70b0',
    500: '#ca158f',
    950: '#000000',
  },
}
SCSS
$custom: #ca158f;
$custom-light: #df70b0;
$custom-dark: #000000;
JSON
{
  "hex": "#ca158f",
  "rgb": {
    "r": 202,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 319.558,
    "s": 81.166,
    "l": 43.725
  },
  "oklch": {
    "l": 0.56274,
    "c": 0.22834,
    "h": 346.8
  },
  "luminance": 0.15076
}

Semantic roles & 50–950 ramp

primary
#CA158F
secondary
#66D58A
accent
#F87130
background
#FEF7FA
surface
#FDEDF4
border
#D5C8CE
text
#160910
muted
#847B7F

Preview Lab

Preview with #CA158F

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

Preview Lab → · Contrast checker → · Palette generator →

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