#CA42E1#CA42E1

#CA42E1 is a light, highly saturated purple. Relative luminance 0.219; OKLCH L 63.5% C 0.246 H 321.5°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#CA42E1
RGBrgb(202, 66, 225)
HSLhsl(291, 73%, 57%)
HSVhsv(291, 71%, 88%)
CMYKcmyk(10.2%, 70.7%, 0%, 11.8%)
CIE-LABlab(53.91, 73.02, -54.78)
CIE-LCHlch(53.91, 91.29, 323.12°)
OKLaboklab(63.46% 0.1924 -0.1532)
OKLCHoklch(63.46% 0.246 321.5)
XYZxyz(39.8944, 21.8914, 73.3437)
Luminance0.2189 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA42E1 #59E142
analogous
#7B42E1 #CA42E1 #E142A8
triadic
#CA42E1 #E1CA42 #42E1CA
tetradic
#CA42E1 #E17B42 #59E142 #42A8E1
square
#CA42E1 #E17B42 #59E142 #42A8E1
split-complementary
#CA42E1 #A8E142 #42E17B
monochromatic
#801792 #AE1FC6 #CA42E1 #D977E9 #E8ACF2

Accessibility & contrast

On white

3.90
#CA42E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#CA42E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA42E1
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA42E1#FFFFFF#000000##000000
##CA42E11.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E5
Deuteranopia (green-blind)
#5686DD
Tritanopia (blue-blind)
#CC5F8E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #ca42e1;
/* rgb */ color: rgb(202, 66, 225);
/* oklch */ color: oklch(63.5% 0.246 321.5);
Tailwind
colors: {
  custom: {
    50: '#de82eb',
    500: '#ca42e1',
    950: '#000000',
  },
}
SCSS
$custom: #ca42e1;
$custom-light: #de82eb;
$custom-dark: #000000;
JSON
{
  "hex": "#ca42e1",
  "rgb": {
    "r": 202,
    "g": 66,
    "b": 225
  },
  "hsl": {
    "h": 291.321,
    "s": 72.603,
    "l": 57.059
  },
  "oklch": {
    "l": 0.63464,
    "c": 0.2459,
    "h": 321.5
  },
  "luminance": 0.21889
}

Semantic roles & 50–950 ramp

primary
#CA42E1
secondary
#A8E09F
accent
#EF3853
background
#FEF8FE
surface
#FCF0FD
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #CA42E1

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

Preview Lab → · Contrast checker → · Palette generator →

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