#CA8FEC#CA8FEC

#CA8FEC is a light, vivid violet. Relative luminance 0.383; OKLCH L 74.2% C 0.143 H 312.4°. Best body text is #000000 at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#CA8FEC
RGBrgb(202, 143, 236)
HSLhsl(278, 71%, 74%)
HSVhsv(278, 39%, 93%)
CMYKcmyk(14.4%, 39.4%, 0%, 7.5%)
CIE-LABlab(68.21, 38.80, -38.33)
CIE-LCHlch(68.21, 54.54, 315.35°)
OKLaboklab(74.16% 0.0967 -0.1059)
OKLCHoklch(74.16% 0.143 312.4)
XYZxyz(49.3173, 38.2585, 84.1272)
Luminance0.3826 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CA8FEC #B1EC8F
analogous
#9C8FEC #CA8FEC #EC8FDF
triadic
#CA8FEC #ECCA8F #8FECCA
tetradic
#CA8FEC #EC9C8F #B1EC8F #8FDFEC
square
#CA8FEC #EC9C8F #B1EC8F #8FDFEC
split-complementary
#CA8FEC #DFEC8F #8FEC9C
monochromatic
#9826DA #B15BE3 #CA8FEC #E3C3F5 #F3E5FB

Accessibility & contrast

On white

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

On black

8.65
#CA8FEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CA8FEC
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CA8FEC#FFFFFF#000000##000000
##CA8FEC1.002.438.658.65
#FFFFFF2.431.0021.0021.00
#0000008.6521.001.001.00
##0000008.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7EA3EF
Deuteranopia (green-blind)
#8CA8E9
Tritanopia (blue-blind)
#C79CB2
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #ca8fec;
/* rgb */ color: rgb(202, 143, 236);
/* oklch */ color: oklch(74.2% 0.143 312.4);
Tailwind
colors: {
  custom: {
    50: '#dbb1f2',
    500: '#ca8fec',
    950: '#000000',
  },
}
SCSS
$custom: #ca8fec;
$custom-light: #dbb1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ca8fec",
  "rgb": {
    "r": 202,
    "g": 143,
    "b": 236
  },
  "hsl": {
    "h": 278.065,
    "s": 70.992,
    "l": 74.314
  },
  "oklch": {
    "l": 0.74161,
    "c": 0.14344,
    "h": 312.4
  },
  "luminance": 0.38258
}

Semantic roles & 50–950 ramp

primary
#CA8FEC
secondary
#E2F2D9
accent
#D31259
background
#FDFAFE
surface
#FBF5FD
border
#D4CFD5
text
#151117
muted
#838085

Preview Lab

Preview with #CA8FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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