#CA17E2#CA17E2

#CA17E2 is a mid, highly saturated purple. Relative luminance 0.187; OKLCH L 60.9% C 0.280 H 322.2°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#CA17E2
RGBrgb(202, 23, 226)
HSLhsl(293, 82%, 49%)
HSVhsv(293, 90%, 89%)
CMYKcmyk(10.6%, 89.8%, 0%, 11.4%)
CIE-LABlab(50.29, 83.86, -61.16)
CIE-LCHlch(50.29, 103.80, 323.90°)
OKLaboklab(60.93% 0.2209 -0.1716)
OKLCHoklch(60.93% 0.28 322.2)
XYZxyz(38.3895, 18.6627, 73.5170)
Luminance0.1866 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA17E2 #2FE217
analogous
#6417E2 #CA17E2 #E21795
triadic
#CA17E2 #E2CA17 #17E2CA
tetradic
#CA17E2 #E26417 #2FE217 #1795E2
square
#CA17E2 #E26417 #2FE217 #1795E2
split-complementary
#CA17E2 #95E217 #17E264
monochromatic
#670C73 #9811AA #CA17E2 #D94AED #E581F2

Accessibility & contrast

On white

4.44
#CA17E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#CA17E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA17E2
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA17E2#FFFFFF#000000##000000
##CA17E21.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#006CE7
Deuteranopia (green-blind)
#407EDE
Tritanopia (blue-blind)
#CC4D86
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ca17e2;
/* rgb */ color: rgb(202, 23, 226);
/* oklch */ color: oklch(60.9% 0.280 322.2);
Tailwind
colors: {
  custom: {
    50: '#df74ec',
    500: '#ca17e2',
    950: '#000000',
  },
}
SCSS
$custom: #ca17e2;
$custom-light: #df74ec;
$custom-dark: #000000;
JSON
{
  "hex": "#ca17e2",
  "rgb": {
    "r": 202,
    "g": 23,
    "b": 226
  },
  "hsl": {
    "h": 292.906,
    "s": 81.526,
    "l": 48.824
  },
  "oklch": {
    "l": 0.60925,
    "c": 0.27972,
    "h": 322.2
  },
  "luminance": 0.1866
}

Semantic roles & 50–950 ramp

primary
#CA17E2
secondary
#86DB7A
accent
#F83048
background
#FEF7FE
surface
#FDEEFD
border
#D5C9D5
text
#160A16
muted
#847C84

Preview Lab

Preview with #CA17E2

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

Preview Lab → · Contrast checker → · Palette generator →

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