#CA31C9#CA31C9

#CA31C9 is a mid, highly saturated purple. Relative luminance 0.190; OKLCH L 60.7% C 0.245 H 328.4°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#CA31C9
RGBrgb(202, 49, 201)
HSLhsl(300, 61%, 49%)
HSVhsv(300, 76%, 79%)
CMYKcmyk(0%, 75.7%, 0.5%, 20.8%)
CIE-LABlab(50.66, 74.45, -46.28)
CIE-LCHlch(50.66, 87.66, 328.13°)
OKLaboklab(60.7% 0.2083 -0.1283)
OKLCHoklch(60.7% 0.245 328.4)
XYZxyz(35.9977, 18.9729, 57.0132)
Luminance0.1897 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA31C9 #31CA32
analogous
#7F31CA #CA31C9 #CA317D
triadic
#CA31C9 #C9CA31 #31C9CA
tetradic
#CA31C9 #CA7F31 #31CA32 #317DCA
square
#CA31C9 #CA7F31 #31CA32 #317DCA
split-complementary
#CA31C9 #7DCA31 #31CA7F
monochromatic
#671967 #992598 #CA31C9 #D860D8 #E491E4

Accessibility & contrast

On white

4.38
#CA31C9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#CA31C9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA31C9
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA31C9#FFFFFF#000000##000000
##CA31C91.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#096CCD
Deuteranopia (green-blind)
#5D7FC5
Tritanopia (blue-blind)
#D14A7C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ca31c9;
/* rgb */ color: rgb(202, 49, 201);
/* oklch */ color: oklch(60.7% 0.245 328.4);
Tailwind
colors: {
  custom: {
    50: '#de7ada',
    500: '#ca31c9',
    950: '#000000',
  },
}
SCSS
$custom: #ca31c9;
$custom-light: #de7ada;
$custom-dark: #000000;
JSON
{
  "hex": "#ca31c9",
  "rgb": {
    "r": 202,
    "g": 49,
    "b": 201
  },
  "hsl": {
    "h": 300.392,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.60704,
    "c": 0.24459,
    "h": 328.4
  },
  "luminance": 0.1897
}

Semantic roles & 50–950 ramp

primary
#CA31C9
secondary
#88CF88
accent
#E44544
background
#FEF8FD
surface
#FCEFFB
border
#D5CAD4
text
#160A15
muted
#847C83

Preview Lab

Preview with #CA31C9

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

Preview Lab → · Contrast checker → · Palette generator →

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