#CA8FEF#CA8FEF

#CA8FEF is a light, vivid violet. Relative luminance 0.384; OKLCH L 74.3% C 0.147 H 311.5°. Best body text is #000000 at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#CA8FEF
RGBrgb(202, 143, 239)
HSLhsl(277, 75%, 75%)
HSVhsv(277, 40%, 94%)
CMYKcmyk(15.5%, 40.2%, 0%, 6.3%)
CIE-LABlab(68.34, 39.44, -39.78)
CIE-LCHlch(68.34, 56.02, 314.76°)
OKLaboklab(74.3% 0.0973 -0.1101)
OKLCHoklch(74.3% 0.147 311.5)
XYZxyz(49.7568, 38.4343, 86.4420)
Luminance0.3843 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA8FEF #B4EF8F
analogous
#9A8FEF #CA8FEF #EF8FE4
triadic
#CA8FEF #EFCA8F #8FEFCA
tetradic
#CA8FEF #EF9A8F #B4EF8F #8FE4EF
square
#CA8FEF #EF9A8F #B4EF8F #8FE4EF
split-complementary
#CA8FEF #E4EF8F #8FEF9A
monochromatic
#9724E0 #B159E7 #CA8FEF #E3C5F7 #F2E4FB

Accessibility & contrast

On white

2.42
#CA8FEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.69
#CA8FEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA8FEF
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA8FEF#FFFFFF#000000##000000
##CA8FEF1.002.428.698.69
#FFFFFF2.421.0021.0021.00
#0000008.6921.001.001.00
##0000008.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7CA4F3
Deuteranopia (green-blind)
#8BA8EC
Tritanopia (blue-blind)
#C69DB4
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #ca8fef;
/* rgb */ color: rgb(202, 143, 239);
/* oklch */ color: oklch(74.3% 0.147 311.5);
Tailwind
colors: {
  custom: {
    50: '#dbb1f4',
    500: '#ca8fef',
    950: '#000000',
  },
}
SCSS
$custom: #ca8fef;
$custom-light: #dbb1f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ca8fef",
  "rgb": {
    "r": 202,
    "g": 143,
    "b": 239
  },
  "hsl": {
    "h": 276.875,
    "s": 75,
    "l": 74.902
  },
  "oklch": {
    "l": 0.743,
    "c": 0.14693,
    "h": 311.5
  },
  "luminance": 0.38433
}

Semantic roles & 50–950 ramp

primary
#CA8FEF
secondary
#E2F3D8
accent
#D70E5C
background
#FDFAFE
surface
#FBF5FD
border
#D4CFD5
text
#151117
muted
#838085

Preview Lab

Preview with #CA8FEF

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

Preview Lab → · Contrast checker → · Palette generator →

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