#CA81F2#CA81F2

#CA81F2 is a light, vivid violet. Relative luminance 0.347; OKLCH L 72.2% C 0.173 H 312.6°. Best body text is #000000 at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#CA81F2
RGBrgb(202, 129, 242)
HSLhsl(279, 81%, 73%)
HSVhsv(279, 47%, 95%)
CMYKcmyk(16.5%, 46.7%, 0%, 5.1%)
CIE-LABlab(65.49, 47.56, -45.89)
CIE-LCHlch(65.49, 66.09, 316.02°)
OKLaboklab(72.21% 0.1173 -0.1277)
OKLCHoklch(72.21% 0.173 312.6)
XYZxyz(48.2316, 34.6689, 88.1382)
Luminance0.3467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA81F2 #A9F281
analogous
#9181F2 #CA81F2 #F281E2
triadic
#CA81F2 #F2CA81 #81F2CA
tetradic
#CA81F2 #F29181 #A9F281 #81E2F2
square
#CA81F2 #F29181 #A9F281 #81E2F2
split-complementary
#CA81F2 #E2F281 #81F291
monochromatic
#9A17E1 #B34AEC #CA81F2 #E1B8F8 #F3E3FC

Accessibility & contrast

On white

2.65
#CA81F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.93
#CA81F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA81F2
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA81F2#FFFFFF#000000##000000
##CA81F21.002.657.937.93
#FFFFFF2.651.0021.0021.00
#0000007.9321.001.001.00
##0000007.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#689BF6
Deuteranopia (green-blind)
#7DA1EF
Tritanopia (blue-blind)
#C692AE
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ca81f2;
/* rgb */ color: rgb(202, 129, 242);
/* oklch */ color: oklch(72.2% 0.173 312.6);
Tailwind
colors: {
  custom: {
    50: '#dca7f7',
    500: '#ca81f2',
    950: '#000000',
  },
}
SCSS
$custom: #ca81f2;
$custom-light: #dca7f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ca81f2",
  "rgb": {
    "r": 202,
    "g": 129,
    "b": 242
  },
  "hsl": {
    "h": 278.761,
    "s": 81.295,
    "l": 72.745
  },
  "oklch": {
    "l": 0.72209,
    "c": 0.17335,
    "h": 312.6
  },
  "luminance": 0.34668
}

Semantic roles & 50–950 ramp

primary
#CA81F2
secondary
#E1F4D7
accent
#DE0854
background
#FDFAFF
surface
#FBF4FE
border
#D4CED6
text
#151017
muted
#837F85

Preview Lab

Preview with #CA81F2

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

Preview Lab → · Contrast checker → · Palette generator →

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