#CA51F2#CA51F2

#CA51F2 is a light, highly saturated purple. Relative luminance 0.249; OKLCH L 65.9% C 0.243 H 316.6°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#CA51F2
RGBrgb(202, 81, 242)
HSLhsl(285, 86%, 63%)
HSVhsv(285, 67%, 95%)
CMYKcmyk(16.5%, 66.5%, 0%, 5.1%)
CIE-LABlab(56.93, 70.43, -59.49)
CIE-LCHlch(56.93, 92.19, 319.82°)
OKLaboklab(65.94% 0.1764 -0.167)
OKLCHoklch(65.94% 0.243 316.6)
XYZxyz(43.3241, 24.8539, 86.5023)
Luminance0.2485 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA51F2 #79F251
analogous
#7951F2 #CA51F2 #F251C9
triadic
#CA51F2 #F2CA51 #51F2CA
tetradic
#CA51F2 #F27951 #79F251 #51C9F2
square
#CA51F2 #F27951 #79F251 #51C9F2
split-complementary
#CA51F2 #C9F251 #51F279
monochromatic
#900EBB #B918EE #CA51F2 #DB8AF6 #EDC3FB

Accessibility & contrast

On white

3.52
#CA51F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#CA51F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CA51F2
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA51F2#FFFFFF#000000##000000
##CA51F21.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081F7
Deuteranopia (green-blind)
#528CEE
Tritanopia (blue-blind)
#C8709B
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #ca51f2;
/* rgb */ color: rgb(202, 81, 242);
/* oklch */ color: oklch(65.9% 0.243 316.6);
Tailwind
colors: {
  custom: {
    50: '#de8af7',
    500: '#ca51f2',
    950: '#000000',
  },
}
SCSS
$custom: #ca51f2;
$custom-light: #de8af7;
$custom-dark: #000000;
JSON
{
  "hex": "#ca51f2",
  "rgb": {
    "r": 202,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 285.093,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.65945,
    "c": 0.24295,
    "h": 316.6
  },
  "luminance": 0.24852
}

Semantic roles & 50–950 ramp

primary
#CA51F2
secondary
#C1ECB3
accent
#E3033A
background
#FEF8FF
surface
#FCF0FF
border
#D5CBD7
text
#160C17
muted
#847D85

Preview Lab

Preview with #CA51F2

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

Preview Lab → · Contrast checker → · Palette generator →

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