#CA31E2#CA31E2

#CA31E2 is a light, highly saturated purple. Relative luminance 0.202; OKLCH L 62.2% C 0.263 H 321.7°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#CA31E2
RGBrgb(202, 49, 226)
HSLhsl(292, 75%, 54%)
HSVhsv(292, 78%, 89%)
CMYKcmyk(10.6%, 78.3%, 0%, 11.4%)
CIE-LABlab(52.11, 78.52, -58.23)
CIE-LCHlch(52.11, 97.76, 323.44°)
OKLaboklab(62.21% 0.2066 -0.1631)
OKLCHoklch(62.21% 0.263 321.7)
XYZxyz(39.1814, 20.2464, 73.7809)
Luminance0.2024 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA31E2 #49E231
analogous
#7231E2 #CA31E2 #E231A2
triadic
#CA31E2 #E2CA31 #31E2CA
tetradic
#CA31E2 #E27231 #49E231 #31A2E2
square
#CA31E2 #E27231 #49E231 #31A2E2
split-complementary
#CA31E2 #A2E231 #31E272
monochromatic
#761386 #A61ABB #CA31E2 #D867EA #E69CF1

Accessibility & contrast

On white

4.16
#CA31E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#CA31E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA31E2
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA31E2#FFFFFF#000000##000000
##CA31E21.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072E7
Deuteranopia (green-blind)
#4B82DE
Tritanopia (blue-blind)
#CC578A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ca31e2;
/* rgb */ color: rgb(202, 49, 226);
/* oklch */ color: oklch(62.2% 0.263 321.7);
Tailwind
colors: {
  custom: {
    50: '#df7bec',
    500: '#ca31e2',
    950: '#000000',
  },
}
SCSS
$custom: #ca31e2;
$custom-light: #df7bec;
$custom-dark: #000000;
JSON
{
  "hex": "#ca31e2",
  "rgb": {
    "r": 202,
    "g": 49,
    "b": 226
  },
  "hsl": {
    "h": 291.864,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.62207,
    "c": 0.26324,
    "h": 321.7
  },
  "luminance": 0.20244
}

Semantic roles & 50–950 ramp

primary
#CA31E2
secondary
#9CDD92
accent
#F2364F
background
#FEF8FE
surface
#FCEFFD
border
#D5CAD5
text
#160B16
muted
#847C84

Preview Lab

Preview with #CA31E2

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

Preview Lab → · Contrast checker → · Palette generator →

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