#CB9EFE#CB9EFE

#CB9EFE is a light, vivid violet. Relative luminance 0.443; OKLCH L 77.6% C 0.141 H 304.9°. Best body text is #000000 at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#CB9EFE
RGBrgb(203, 158, 254)
HSLhsl(268, 98%, 81%)
HSVhsv(268, 38%, 100%)
CMYKcmyk(20.1%, 37.8%, 0%, 0.4%)
CIE-LABlab(72.43, 34.83, -41.56)
CIE-LCHlch(72.43, 54.22, 309.97°)
OKLaboklab(77.63% 0.0804 -0.1153)
OKLCHoklch(77.63% 0.141 304.9)
XYZxyz(54.7412, 44.3062, 99.4148)
Luminance0.4431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB9EFE #D1FE9E
analogous
#9EA1FE #CB9EFE #FB9EFE
triadic
#CB9EFE #FECB9E #9EFECB
tetradic
#CB9EFE #FE9EA1 #D1FE9E #9EFEFB
square
#CB9EFE #FE9EA1 #D1FE9E #9EFEFB
split-complementary
#CB9EFE #FEFB9E #A1FE9E
monochromatic
#8A25FD #AB61FD #CB9EFE #EBDBFF #EFE1FF

Accessibility & contrast

On white

2.13
#CB9EFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.86
#CB9EFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB9EFE
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB9EFE#FFFFFF#000000##000000
##CB9EFE1.002.139.869.86
#FFFFFF2.131.0021.0021.00
#0000009.8621.001.001.00
##0000009.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#88B0FF
Deuteranopia (green-blind)
#92B2FB
Tritanopia (blue-blind)
#C3ADC2
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #cb9efe;
/* rgb */ color: rgb(203, 158, 254);
/* oklch */ color: oklch(77.6% 0.141 304.9);
Tailwind
colors: {
  custom: {
    50: '#dcbbff',
    500: '#cb9efe',
    950: '#000000',
  },
}
SCSS
$custom: #cb9efe;
$custom-light: #dcbbff;
$custom-dark: #000000;
JSON
{
  "hex": "#cb9efe",
  "rgb": {
    "r": 203,
    "g": 158,
    "b": 254
  },
  "hsl": {
    "h": 268.125,
    "s": 97.959,
    "l": 80.784
  },
  "oklch": {
    "l": 0.77627,
    "c": 0.14055,
    "h": 304.9
  },
  "luminance": 0.44306
}

Semantic roles & 50–950 ramp

primary
#CB9EFE
secondary
#E7F7D4
accent
#E6007A
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151218
muted
#838186

Preview Lab

Preview with #CB9EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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