#CA42D5#CA42D5

#CA42D5 is a light, highly saturated purple. Relative luminance 0.213; OKLCH L 62.8% C 0.236 H 324.7°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#CA42D5
RGBrgb(202, 66, 213)
HSLhsl(296, 64%, 55%)
HSVhsv(296, 69%, 84%)
CMYKcmyk(5.2%, 69%, 0%, 16.5%)
CIE-LABlab(53.23, 70.94, -49.06)
CIE-LCHlch(53.23, 86.25, 325.34°)
OKLaboklab(62.76% 0.1928 -0.1365)
OKLCHoklch(62.76% 0.236 324.7)
XYZxyz(38.3146, 21.2595, 65.0233)
Luminance0.2126 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA42D5 #4DD542
analogous
#8042D5 #CA42D5 #D54297
triadic
#CA42D5 #D5CA42 #42D5CA
tetradic
#CA42D5 #D58042 #4DD542 #4297D5
square
#CA42D5 #D58042 #4DD542 #4297D5
split-complementary
#CA42D5 #97D542 #42D580
monochromatic
#791C80 #A828B2 #CA42D5 #D874E0 #E6A6EB

Accessibility & contrast

On white

4.00
#CA42D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#CA42D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA42D5
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA42D5#FFFFFF#000000##000000
##CA42D51.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B75D9
Deuteranopia (green-blind)
#5E85D1
Tritanopia (blue-blind)
#CE5A87
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ca42d5;
/* rgb */ color: rgb(202, 66, 213);
/* oklch */ color: oklch(62.8% 0.236 324.7);
Tailwind
colors: {
  custom: {
    50: '#de82e2',
    500: '#ca42d5',
    950: '#000000',
  },
}
SCSS
$custom: #ca42d5;
$custom-light: #de82e2;
$custom-dark: #000000;
JSON
{
  "hex": "#ca42d5",
  "rgb": {
    "r": 202,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 295.51,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.62759,
    "c": 0.23617,
    "h": 324.7
  },
  "luminance": 0.21257
}

Semantic roles & 50–950 ramp

primary
#CA42D5
secondary
#9FD89A
accent
#E7414E
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CA42D5

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

Preview Lab → · Contrast checker → · Palette generator →

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