#CA42BD#CA42BD

#CA42BD is a mid, highly saturated purple. Relative luminance 0.201; OKLCH L 61.5% C 0.217 H 332.0°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#CA42BD
RGBrgb(202, 66, 189)
HSLhsl(306, 56%, 53%)
HSVhsv(306, 67%, 79%)
CMYKcmyk(0%, 67.3%, 6.4%, 20.8%)
CIE-LABlab(51.98, 67.02, -37.24)
CIE-LCHlch(51.98, 76.67, 330.94°)
OKLaboklab(61.46% 0.192 -0.1022)
OKLCHoklch(61.46% 0.218 332)
XYZxyz(35.4907, 20.1299, 50.1505)
Luminance0.2013 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA42BD #42CA4F
analogous
#9342CA #CA42BD #CA4279
triadic
#CA42BD #BDCA42 #42BDCA
tetradic
#CA42BD #CA9342 #42CA4F #4279CA
square
#CA42BD #CA9342 #42CA4F #4279CA
split-complementary
#CA42BD #79CA42 #42CA93
monochromatic
#72206A #A22D96 #CA42BD #D772CE #E5A2DE

Accessibility & contrast

On white

4.18
#CA42BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#CA42BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA42BD
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA42BD#FFFFFF#000000##000000
##CA42BD1.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B70C1
Deuteranopia (green-blind)
#6B83BA
Tritanopia (blue-blind)
#D2507A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ca42bd;
/* rgb */ color: rgb(202, 66, 189);
/* oklch */ color: oklch(61.5% 0.217 332.0);
Tailwind
colors: {
  custom: {
    50: '#de81d1',
    500: '#ca42bd',
    950: '#000000',
  },
}
SCSS
$custom: #ca42bd;
$custom-light: #de81d1;
$custom-dark: #000000;
JSON
{
  "hex": "#ca42bd",
  "rgb": {
    "r": 202,
    "g": 66,
    "b": 189
  },
  "hsl": {
    "h": 305.735,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.61456,
    "c": 0.2175,
    "h": 332
  },
  "luminance": 0.20127
}

Semantic roles & 50–950 ramp

primary
#CA42BD
secondary
#96D19C
accent
#DF5748
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CA42BD

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

Preview Lab → · Contrast checker → · Palette generator →

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