#CA8AFE#CA8AFE

#CA8AFE is a light, vivid violet. Relative luminance 0.379; OKLCH L 74.2% C 0.173 H 308.2°. Best body text is #000000 at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#CA8AFE
RGBrgb(202, 138, 254)
HSLhsl(273, 98%, 77%)
HSVhsv(273, 46%, 100%)
CMYKcmyk(20.5%, 45.7%, 0%, 0.4%)
CIE-LABlab(67.94, 45.37, -48.61)
CIE-LCHlch(67.94, 66.50, 313.03°)
OKLaboklab(74.22% 0.1067 -0.1356)
OKLCHoklch(74.22% 0.173 308.2)
XYZxyz(51.3315, 37.8899, 98.3560)
Luminance0.3789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA8AFE #BEFE8A
analogous
#908AFE #CA8AFE #FE8AF8
triadic
#CA8AFE #FECA8A #8AFECA
tetradic
#CA8AFE #FE908A #BEFE8A #8AF8FE
square
#CA8AFE #FE908A #BEFE8A #8AF8FE
split-complementary
#CA8AFE #F8FE8A #8AFE90
monochromatic
#9311FD #AF4DFD #CA8AFE #E5C7FF #F1E1FF

Accessibility & contrast

On white

2.45
#CA8AFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.58
#CA8AFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA8AFE
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA8AFE#FFFFFF#000000##000000
##CA8AFE1.002.458.588.58
#FFFFFF2.451.0021.0021.00
#0000008.5821.001.001.00
##0000008.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6DA3FF
Deuteranopia (green-blind)
#7EA6FB
Tritanopia (blue-blind)
#C39DB8
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #ca8afe;
/* rgb */ color: rgb(202, 138, 254);
/* oklch */ color: oklch(74.2% 0.173 308.2);
Tailwind
colors: {
  custom: {
    50: '#dcadff',
    500: '#ca8afe',
    950: '#000000',
  },
}
SCSS
$custom: #ca8afe;
$custom-light: #dcadff;
$custom-dark: #000000;
JSON
{
  "hex": "#ca8afe",
  "rgb": {
    "r": 202,
    "g": 138,
    "b": 254
  },
  "hsl": {
    "h": 273.103,
    "s": 98.305,
    "l": 76.863
  },
  "oklch": {
    "l": 0.74222,
    "c": 0.17253,
    "h": 308.2
  },
  "luminance": 0.37889
}

Semantic roles & 50–950 ramp

primary
#CA8AFE
secondary
#E4F7D4
accent
#E60067
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #CA8AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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