#CA42BB#CA42BB

#CA42BB is a mid, highly saturated purple. Relative luminance 0.200; OKLCH L 61.4% C 0.216 H 332.6°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#CA42BB
RGBrgb(202, 66, 187)
HSLhsl(307, 56%, 53%)
HSVhsv(307, 67%, 79%)
CMYKcmyk(0%, 67.3%, 7.4%, 20.8%)
CIE-LABlab(51.89, 66.70, -36.23)
CIE-LCHlch(51.89, 75.91, 331.49°)
OKLaboklab(61.35% 0.1918 -0.0993)
OKLCHoklch(61.35% 0.216 332.6)
XYZxyz(35.2751, 20.0436, 49.0150)
Luminance0.2004 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA42BB #42CA51
analogous
#9542CA #CA42BB #CA4277
triadic
#CA42BB #BBCA42 #42BBCA
tetradic
#CA42BB #CA9542 #42CA51 #4277CA
square
#CA42BB #CA9542 #42CA51 #4277CA
split-complementary
#CA42BB #77CA42 #42CA95
monochromatic
#722069 #A22D95 #CA42BB #D772CC #E5A2DD

Accessibility & contrast

On white

4.19
#CA42BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#CA42BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA42BB
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA42BB#FFFFFF#000000##000000
##CA42BB1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C6FBE
Deuteranopia (green-blind)
#6C83B8
Tritanopia (blue-blind)
#D34F79
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ca42bb;
/* rgb */ color: rgb(202, 66, 187);
/* oklch */ color: oklch(61.4% 0.216 332.6);
Tailwind
colors: {
  custom: {
    50: '#de81d0',
    500: '#ca42bb',
    950: '#000000',
  },
}
SCSS
$custom: #ca42bb;
$custom-light: #de81d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ca42bb",
  "rgb": {
    "r": 202,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 306.618,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.61354,
    "c": 0.21602,
    "h": 332.6
  },
  "luminance": 0.20041
}

Semantic roles & 50–950 ramp

primary
#CA42BB
secondary
#96D19D
accent
#DF5948
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CA42BB

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

Preview Lab → · Contrast checker → · Palette generator →

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