#CA8CFB#CA8CFB

#CA8CFB is a light, vivid violet. Relative luminance 0.383; OKLCH L 74.4% C 0.166 H 308.6°. Best body text is #000000 at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#CA8CFB
RGBrgb(202, 140, 251)
HSLhsl(274, 93%, 77%)
HSVhsv(274, 44%, 98%)
CMYKcmyk(19.5%, 44.2%, 0%, 1.6%)
CIE-LABlab(68.23, 43.64, -46.52)
CIE-LCHlch(68.23, 63.79, 313.17°)
OKLaboklab(74.39% 0.1035 -0.1296)
OKLCHoklch(74.39% 0.166 308.6)
XYZxyz(51.1445, 38.2784, 95.9422)
Luminance0.3828 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA8CFB #BDFB8C
analogous
#938CFB #CA8CFB #FB8CF4
triadic
#CA8CFB #FBCA8C #8CFBCA
tetradic
#CA8CFB #FB938C #BDFB8C #8CF4FB
square
#CA8CFB #FB938C #BDFB8C #8CF4FB
split-complementary
#CA8CFB #F4FB8C #8CFB93
monochromatic
#9316F7 #AF51F9 #CA8CFB #E5C7FD #F1E1FE

Accessibility & contrast

On white

2.43
#CA8CFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.66
#CA8CFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA8CFB
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA8CFB#FFFFFF#000000##000000
##CA8CFB1.002.438.668.66
#FFFFFF2.431.0021.0021.00
#0000008.6621.001.001.00
##0000008.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#72A4FF
Deuteranopia (green-blind)
#82A7F8
Tritanopia (blue-blind)
#C49EB8
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #ca8cfb;
/* rgb */ color: rgb(202, 140, 251);
/* oklch */ color: oklch(74.4% 0.166 308.6);
Tailwind
colors: {
  custom: {
    50: '#dcaffd',
    500: '#ca8cfb',
    950: '#000000',
  },
}
SCSS
$custom: #ca8cfb;
$custom-light: #dcaffd;
$custom-dark: #000000;
JSON
{
  "hex": "#ca8cfb",
  "rgb": {
    "r": 202,
    "g": 140,
    "b": 251
  },
  "hsl": {
    "h": 273.514,
    "s": 93.277,
    "l": 76.667
  },
  "oklch": {
    "l": 0.7439,
    "c": 0.16584,
    "h": 308.6
  },
  "luminance": 0.38278
}

Semantic roles & 50–950 ramp

primary
#CA8CFB
secondary
#E4F6D5
accent
#E60065
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CA8CFB

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

Preview Lab → · Contrast checker → · Palette generator →

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