#CA81F8#CA81F8

#CA81F8 is a light, vivid violet. Relative luminance 0.350; OKLCH L 72.5% C 0.180 H 311.0°. Best body text is #000000 at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#CA81F8
RGBrgb(202, 129, 248)
HSLhsl(277, 89%, 74%)
HSVhsv(277, 48%, 97%)
CMYKcmyk(18.5%, 48%, 0%, 2.7%)
CIE-LABlab(65.78, 48.84, -48.74)
CIE-LCHlch(65.78, 69.00, 315.06°)
OKLaboklab(72.52% 0.118 -0.1359)
OKLCHoklch(72.52% 0.18 311)
XYZxyz(49.1476, 35.0353, 92.9622)
Luminance0.3503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA81F8 #AFF881
analogous
#8F81F8 #CA81F8 #F881EA
triadic
#CA81F8 #F8CA81 #81F8CA
tetradic
#CA81F8 #F88F81 #AFF881 #81EAF8
square
#CA81F8 #F88F81 #AFF881 #81EAF8
split-complementary
#CA81F8 #EAF881 #81F88F
monochromatic
#990DF1 #B247F5 #CA81F8 #E2BBFB #F3E2FD

Accessibility & contrast

On white

2.62
#CA81F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.01
#CA81F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA81F8
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA81F8#FFFFFF#000000##000000
##CA81F81.002.628.018.01
#FFFFFF2.621.0021.0021.00
#0000008.0121.001.001.00
##0000008.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#649CFC
Deuteranopia (green-blind)
#79A1F5
Tritanopia (blue-blind)
#C594B1
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #ca81f8;
/* rgb */ color: rgb(202, 129, 248);
/* oklch */ color: oklch(72.5% 0.180 311.0);
Tailwind
colors: {
  custom: {
    50: '#dca7fb',
    500: '#ca81f8',
    950: '#000000',
  },
}
SCSS
$custom: #ca81f8;
$custom-light: #dca7fb;
$custom-dark: #000000;
JSON
{
  "hex": "#ca81f8",
  "rgb": {
    "r": 202,
    "g": 129,
    "b": 248
  },
  "hsl": {
    "h": 276.807,
    "s": 89.474,
    "l": 73.922
  },
  "oklch": {
    "l": 0.72516,
    "c": 0.18002,
    "h": 311
  },
  "luminance": 0.35034
}

Semantic roles & 50–950 ramp

primary
#CA81F8
secondary
#E2F5D6
accent
#E60059
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CA81F8

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

Preview Lab → · Contrast checker → · Palette generator →

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