#CB8EFE#CB8EFE

#CB8EFE is a light, vivid violet. Relative luminance 0.392; OKLCH L 75.0% C 0.166 H 308.0°. Best body text is #000000 at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#CB8EFE
RGBrgb(203, 142, 254)
HSLhsl(273, 98%, 78%)
HSVhsv(273, 44%, 100%)
CMYKcmyk(20.1%, 44.1%, 0%, 0.4%)
CIE-LABlab(68.90, 43.50, -47.10)
CIE-LCHlch(68.90, 64.12, 312.73°)
OKLaboklab(74.96% 0.1024 -0.1312)
OKLCHoklch(74.96% 0.166 308)
XYZxyz(52.1875, 39.1989, 98.5636)
Luminance0.3920 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB8EFE #C1FE8E
analogous
#938EFE #CB8EFE #FE8EF9
triadic
#CB8EFE #FECB8E #8EFECB
tetradic
#CB8EFE #FE938E #C1FE8E #8EF9FE
square
#CB8EFE #FE938E #C1FE8E #8EF9FE
split-complementary
#CB8EFE #F9FE8E #8EFE93
monochromatic
#9315FD #AF51FD #CB8EFE #E7CBFF #F1E1FF

Accessibility & contrast

On white

2.38
#CB8EFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.84
#CB8EFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB8EFE
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB8EFE#FFFFFF#000000##000000
##CB8EFE1.002.388.848.84
#FFFFFF2.381.0021.0021.00
#0000008.8421.001.001.00
##0000008.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#73A6FF
Deuteranopia (green-blind)
#83A9FB
Tritanopia (blue-blind)
#C4A0BA
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #cb8efe;
/* rgb */ color: rgb(203, 142, 254);
/* oklch */ color: oklch(75.0% 0.166 308.0);
Tailwind
colors: {
  custom: {
    50: '#ddb0ff',
    500: '#cb8efe',
    950: '#000000',
  },
}
SCSS
$custom: #cb8efe;
$custom-light: #ddb0ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cb8efe",
  "rgb": {
    "r": 203,
    "g": 142,
    "b": 254
  },
  "hsl": {
    "h": 272.679,
    "s": 98.246,
    "l": 77.647
  },
  "oklch": {
    "l": 0.7496,
    "c": 0.16645,
    "h": 308
  },
  "luminance": 0.39198
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CB8EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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