#CA8DFE#CA8DFE

#CA8DFE is a light, vivid violet. Relative luminance 0.388; OKLCH L 74.7% C 0.168 H 307.7°. Best body text is #000000 at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#CA8DFE
RGBrgb(202, 141, 254)
HSLhsl(272, 98%, 77%)
HSVhsv(272, 44%, 100%)
CMYKcmyk(20.5%, 44.5%, 0%, 0.4%)
CIE-LABlab(68.58, 43.77, -47.60)
CIE-LCHlch(68.58, 64.66, 312.59°)
OKLaboklab(74.7% 0.1026 -0.1327)
OKLCHoklch(74.7% 0.168 307.7)
XYZxyz(51.7679, 38.7626, 98.5015)
Luminance0.3876 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA8DFE #C1FE8D
analogous
#918DFE #CA8DFE #FE8DFA
triadic
#CA8DFE #FECA8D #8DFECA
tetradic
#CA8DFE #FE918D #C1FE8D #8DFAFE
square
#CA8DFE #FE918D #C1FE8D #8DFAFE
split-complementary
#CA8DFE #FAFE8D #8DFE91
monochromatic
#9214FD #AE50FD #CA8DFE #E6CAFF #F1E1FF

Accessibility & contrast

On white

2.40
#CA8DFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.75
#CA8DFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA8DFE
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA8DFE#FFFFFF#000000##000000
##CA8DFE1.002.408.758.75
#FFFFFF2.401.0021.0021.00
#0000008.7521.001.001.00
##0000008.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#72A5FF
Deuteranopia (green-blind)
#81A8FB
Tritanopia (blue-blind)
#C39FBA
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #ca8dfe;
/* rgb */ color: rgb(202, 141, 254);
/* oklch */ color: oklch(74.7% 0.168 307.7);
Tailwind
colors: {
  custom: {
    50: '#dcafff',
    500: '#ca8dfe',
    950: '#000000',
  },
}
SCSS
$custom: #ca8dfe;
$custom-light: #dcafff;
$custom-dark: #000000;
JSON
{
  "hex": "#ca8dfe",
  "rgb": {
    "r": 202,
    "g": 141,
    "b": 254
  },
  "hsl": {
    "h": 272.389,
    "s": 98.261,
    "l": 77.451
  },
  "oklch": {
    "l": 0.747,
    "c": 0.16774,
    "h": 307.7
  },
  "luminance": 0.38762
}

Semantic roles & 50–950 ramp

primary
#CA8DFE
secondary
#E4F7D4
accent
#E6006A
background
#FDFAFF
surface
#FBF5FF
border
#D4CFD7
text
#151018
muted
#837F86

Preview Lab

Preview with #CA8DFE

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

Preview Lab → · Contrast checker → · Palette generator →

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