#CA42B1#CA42B1

#CA42B1 is a mid, highly saturated pink. Relative luminance 0.196; OKLCH L 60.9% C 0.209 H 336.0°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#CA42B1
RGBrgb(202, 66, 177)
HSLhsl(311, 56%, 53%)
HSVhsv(311, 67%, 79%)
CMYKcmyk(0%, 67.3%, 12.4%, 20.8%)
CIE-LABlab(51.42, 65.19, -31.15)
CIE-LCHlch(51.42, 72.25, 334.46°)
OKLaboklab(60.86% 0.1908 -0.0848)
OKLCHoklch(60.86% 0.209 336)
XYZxyz(34.2416, 19.6303, 43.5721)
Luminance0.1963 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA42B1 #42CA5B
analogous
#9F42CA #CA42B1 #CA426D
triadic
#CA42B1 #B1CA42 #42B1CA
tetradic
#CA42B1 #CA9F42 #42CA5B #426DCA
square
#CA42B1 #CA9F42 #42CA5B #426DCA
split-complementary
#CA42B1 #6DCA42 #42CA9F
monochromatic
#722063 #A22D8C #CA42B1 #D772C5 #E5A2D8

Accessibility & contrast

On white

4.26
#CA42B1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#CA42B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA42B1
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA42B1#FFFFFF#000000##000000
##CA42B11.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#446DB4
Deuteranopia (green-blind)
#7182AE
Tritanopia (blue-blind)
#D44A74
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ca42b1;
/* rgb */ color: rgb(202, 66, 177);
/* oklch */ color: oklch(60.9% 0.209 336.0);
Tailwind
colors: {
  custom: {
    50: '#de81c8',
    500: '#ca42b1',
    950: '#000000',
  },
}
SCSS
$custom: #ca42b1;
$custom-light: #de81c8;
$custom-dark: #000000;
JSON
{
  "hex": "#ca42b1",
  "rgb": {
    "r": 202,
    "g": 66,
    "b": 177
  },
  "hsl": {
    "h": 311.029,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.6086,
    "c": 0.20875,
    "h": 336
  },
  "luminance": 0.19627
}

Semantic roles & 50–950 ramp

primary
#CA42B1
secondary
#96D1A1
accent
#DF6448
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B13
muted
#847C82

Preview Lab

Preview with #CA42B1

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

Preview Lab → · Contrast checker → · Palette generator →

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