#CA42BC#CA42BC

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

Color values

HEX#CA42BC
RGBrgb(202, 66, 188)
HSLhsl(306, 56%, 53%)
HSVhsv(306, 67%, 79%)
CMYKcmyk(0%, 67.3%, 6.9%, 20.8%)
CIE-LABlab(51.94, 66.86, -36.74)
CIE-LCHlch(51.94, 76.29, 331.21°)
OKLaboklab(61.41% 0.1919 -0.1008)
OKLCHoklch(61.41% 0.217 332.3)
XYZxyz(35.3825, 20.0866, 49.5808)
Luminance0.2008 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA42BC #42CA50
analogous
#9442CA #CA42BC #CA4278
triadic
#CA42BC #BCCA42 #42BCCA
tetradic
#CA42BC #CA9442 #42CA50 #4278CA
square
#CA42BC #CA9442 #42CA50 #4278CA
split-complementary
#CA42BC #78CA42 #42CA94
monochromatic
#722069 #A22D96 #CA42BC #D772CD #E5A2DE

Accessibility & contrast

On white

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

On black

5.02
#CA42BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA42BC
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA42BC#FFFFFF#000000##000000
##CA42BC1.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B6FC0
Deuteranopia (green-blind)
#6C83B9
Tritanopia (blue-blind)
#D24F7A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ca42bc;
/* rgb */ color: rgb(202, 66, 188);
/* oklch */ color: oklch(61.4% 0.217 332.3);
Tailwind
colors: {
  custom: {
    50: '#de81d0',
    500: '#ca42bc',
    950: '#000000',
  },
}
SCSS
$custom: #ca42bc;
$custom-light: #de81d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ca42bc",
  "rgb": {
    "r": 202,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 306.176,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.61405,
    "c": 0.21676,
    "h": 332.3
  },
  "luminance": 0.20084
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CA42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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