#CA40E2#CA40E2

#CA40E2 is a light, highly saturated purple. Relative luminance 0.217; OKLCH L 63.3% C 0.249 H 321.3°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#CA40E2
RGBrgb(202, 64, 226)
HSLhsl(291, 74%, 57%)
HSVhsv(291, 72%, 89%)
CMYKcmyk(10.6%, 71.7%, 0%, 11.4%)
CIE-LABlab(53.72, 73.89, -55.65)
CIE-LCHlch(53.72, 92.50, 323.02°)
OKLaboklab(63.35% 0.1942 -0.1557)
OKLCHoklch(63.35% 0.249 321.3)
XYZxyz(39.9164, 21.7165, 74.0259)
Luminance0.2171 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA40E2 #58E240
analogous
#7940E2 #CA40E2 #E240A9
triadic
#CA40E2 #E2CA40 #40E2CA
tetradic
#CA40E2 #E27940 #58E240 #40A9E2
square
#CA40E2 #E27940 #58E240 #40A9E2
split-complementary
#CA40E2 #A9E240 #40E279
monochromatic
#7F1692 #AE1EC7 #CA40E2 #D975EA #E7AAF2

Accessibility & contrast

On white

3.93
#CA40E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#CA40E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA40E2
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA40E2#FFFFFF#000000##000000
##CA40E21.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077E7
Deuteranopia (green-blind)
#5485DE
Tritanopia (blue-blind)
#CC5F8E
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ca40e2;
/* rgb */ color: rgb(202, 64, 226);
/* oklch */ color: oklch(63.3% 0.249 321.3);
Tailwind
colors: {
  custom: {
    50: '#de81ec',
    500: '#ca40e2',
    950: '#000000',
  },
}
SCSS
$custom: #ca40e2;
$custom-light: #de81ec;
$custom-dark: #000000;
JSON
{
  "hex": "#ca40e2",
  "rgb": {
    "r": 202,
    "g": 64,
    "b": 226
  },
  "hsl": {
    "h": 291.111,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.63349,
    "c": 0.24889,
    "h": 321.3
  },
  "luminance": 0.21714
}

Semantic roles & 50–950 ramp

primary
#CA40E2
secondary
#A8E09E
accent
#F03853
background
#FEF8FE
surface
#FCF0FD
border
#D5CBD5
text
#160B16
muted
#847C84

Preview Lab

Preview with #CA40E2

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

Preview Lab → · Contrast checker → · Palette generator →

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