#CB8AFE#CB8AFE

#CB8AFE is a light, vivid violet. Relative luminance 0.380; OKLCH L 74.3% C 0.173 H 308.6°. Best body text is #000000 at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#CB8AFE
RGBrgb(203, 138, 254)
HSLhsl(274, 98%, 77%)
HSVhsv(274, 46%, 100%)
CMYKcmyk(20.1%, 45.7%, 0%, 0.4%)
CIE-LABlab(68.04, 45.64, -48.44)
CIE-LCHlch(68.04, 66.56, 313.30°)
OKLaboklab(74.32% 0.1078 -0.1351)
OKLCHoklch(74.32% 0.173 308.6)
XYZxyz(51.6030, 38.0299, 98.3688)
Luminance0.3803 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB8AFE #BDFE8A
analogous
#918AFE #CB8AFE #FE8AF7
triadic
#CB8AFE #FECB8A #8AFECB
tetradic
#CB8AFE #FE918A #BDFE8A #8AF7FE
square
#CB8AFE #FE918A #BDFE8A #8AF7FE
split-complementary
#CB8AFE #F7FE8A #8AFE91
monochromatic
#9511FD #B04DFD #CB8AFE #E6C7FF #F2E1FF

Accessibility & contrast

On white

2.44
#CB8AFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.61
#CB8AFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB8AFE
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB8AFE#FFFFFF#000000##000000
##CB8AFE1.002.448.618.61
#FFFFFF2.441.0021.0021.00
#0000008.6121.001.001.00
##0000008.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6EA3FF
Deuteranopia (green-blind)
#7FA7FB
Tritanopia (blue-blind)
#C49DB8
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #cb8afe;
/* rgb */ color: rgb(203, 138, 254);
/* oklch */ color: oklch(74.3% 0.173 308.6);
Tailwind
colors: {
  custom: {
    50: '#ddadff',
    500: '#cb8afe',
    950: '#000000',
  },
}
SCSS
$custom: #cb8afe;
$custom-light: #ddadff;
$custom-dark: #000000;
JSON
{
  "hex": "#cb8afe",
  "rgb": {
    "r": 203,
    "g": 138,
    "b": 254
  },
  "hsl": {
    "h": 273.621,
    "s": 98.305,
    "l": 76.863
  },
  "oklch": {
    "l": 0.74322,
    "c": 0.17285,
    "h": 308.6
  },
  "luminance": 0.38029
}

Semantic roles & 50–950 ramp

primary
#CB8AFE
secondary
#E3F7D4
accent
#E60065
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #CB8AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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