#CA31C0#CA31C0

#CA31C0 is a mid, highly saturated purple. Relative luminance 0.186; OKLCH L 60.2% C 0.238 H 331.0°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#CA31C0
RGBrgb(202, 49, 192)
HSLhsl(304, 61%, 49%)
HSVhsv(304, 76%, 79%)
CMYKcmyk(0%, 75.7%, 5%, 20.8%)
CIE-LABlab(50.17, 73.06, -41.84)
CIE-LCHlch(50.17, 84.19, 330.20°)
OKLaboklab(60.2% 0.2083 -0.1154)
OKLCHoklch(60.2% 0.238 331)
XYZxyz(34.9698, 18.5618, 51.5999)
Luminance0.1856 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA31C0 #31CA3B
analogous
#8831CA #CA31C0 #CA3173
triadic
#CA31C0 #C0CA31 #31C0CA
tetradic
#CA31C0 #CA8831 #31CA3B #3173CA
square
#CA31C0 #CA8831 #31CA3B #3173CA
split-complementary
#CA31C0 #73CA31 #31CA88
monochromatic
#671962 #992591 #CA31C0 #D860D1 #E491DF

Accessibility & contrast

On white

4.46
#CA31C0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#CA31C0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA31C0
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA31C0#FFFFFF#000000##000000
##CA31C01.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#206AC4
Deuteranopia (green-blind)
#627FBC
Tritanopia (blue-blind)
#D24577
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ca31c0;
/* rgb */ color: rgb(202, 49, 192);
/* oklch */ color: oklch(60.2% 0.238 331.0);
Tailwind
colors: {
  custom: {
    50: '#de7ad3',
    500: '#ca31c0',
    950: '#000000',
  },
}
SCSS
$custom: #ca31c0;
$custom-light: #de7ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#ca31c0",
  "rgb": {
    "r": 202,
    "g": 49,
    "b": 192
  },
  "hsl": {
    "h": 303.922,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.60201,
    "c": 0.23812,
    "h": 331
  },
  "luminance": 0.18559
}

Semantic roles & 50–950 ramp

primary
#CA31C0
secondary
#88CF8C
accent
#E44E44
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160A14
muted
#847C83

Preview Lab

Preview with #CA31C0

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

Preview Lab → · Contrast checker → · Palette generator →

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