#CA31C8#CA31C8

#CA31C8 is a mid, highly saturated purple. Relative luminance 0.189; OKLCH L 60.6% C 0.244 H 328.7°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#CA31C8
RGBrgb(202, 49, 200)
HSLhsl(301, 61%, 49%)
HSVhsv(301, 76%, 79%)
CMYKcmyk(0%, 75.7%, 1%, 20.8%)
CIE-LABlab(50.60, 74.29, -45.79)
CIE-LCHlch(50.60, 87.27, 328.35°)
OKLaboklab(60.65% 0.2083 -0.1268)
OKLCHoklch(60.65% 0.244 328.7)
XYZxyz(35.8804, 18.9260, 56.3957)
Luminance0.1892 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA31C8 #31CA33
analogous
#8031CA #CA31C8 #CA317C
triadic
#CA31C8 #C8CA31 #31C8CA
tetradic
#CA31C8 #CA8031 #31CA33 #317CCA
square
#CA31C8 #CA8031 #31CA33 #317CCA
split-complementary
#CA31C8 #7CCA31 #31CA80
monochromatic
#671966 #992597 #CA31C8 #D860D7 #E491E3

Accessibility & contrast

On white

4.39
#CA31C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#CA31C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA31C8
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA31C8#FFFFFF#000000##000000
##CA31C81.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0D6CCC
Deuteranopia (green-blind)
#5E7FC4
Tritanopia (blue-blind)
#D1497B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ca31c8;
/* rgb */ color: rgb(202, 49, 200);
/* oklch */ color: oklch(60.6% 0.244 328.7);
Tailwind
colors: {
  custom: {
    50: '#de7ad9',
    500: '#ca31c8',
    950: '#000000',
  },
}
SCSS
$custom: #ca31c8;
$custom-light: #de7ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#ca31c8",
  "rgb": {
    "r": 202,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 300.784,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.60647,
    "c": 0.24386,
    "h": 328.7
  },
  "luminance": 0.18923
}

Semantic roles & 50–950 ramp

primary
#CA31C8
secondary
#88CF89
accent
#E44644
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160A15
muted
#847C83

Preview Lab

Preview with #CA31C8

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

Preview Lab → · Contrast checker → · Palette generator →

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