#CB8AFF#CB8AFF

#CB8AFF is a light, vivid violet. Relative luminance 0.381; OKLCH L 74.4% C 0.174 H 308.4°. Best body text is #000000 at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#CB8AFF
RGBrgb(203, 138, 255)
HSLhsl(273, 100%, 77%)
HSVhsv(273, 46%, 100%)
CMYKcmyk(20.4%, 45.9%, 0%, 0%)
CIE-LABlab(68.09, 45.86, -48.91)
CIE-LCHlch(68.09, 67.05, 313.16°)
OKLaboklab(74.37% 0.108 -0.1364)
OKLCHoklch(74.37% 0.174 308.4)
XYZxyz(51.7636, 38.0941, 99.2143)
Luminance0.3809 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB8AFF #BEFF8A
analogous
#918AFF #CB8AFF #FF8AF9
triadic
#CB8AFF #FFCB8A #8AFFCB
tetradic
#CB8AFF #FF918A #BEFF8A #8AF9FF
square
#CB8AFF #FF918A #BEFF8A #8AF9FF
split-complementary
#CB8AFF #F9FF8A #8AFF91
monochromatic
#9510FF #B04DFF #CB8AFF #E6C7FF #F1E0FF

Accessibility & contrast

On white

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

On black

8.62
#CB8AFF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB8AFF
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB8AFF#FFFFFF#000000##000000
##CB8AFF1.002.448.628.62
#FFFFFF2.441.0021.0021.00
#0000008.6221.001.001.00
##0000008.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6DA3FF
Deuteranopia (green-blind)
#7EA7FC
Tritanopia (blue-blind)
#C49DB9
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #cb8aff;
/* rgb */ color: rgb(203, 138, 255);
/* oklch */ color: oklch(74.4% 0.174 308.4);
Tailwind
colors: {
  custom: {
    50: '#ddadff',
    500: '#cb8aff',
    950: '#000000',
  },
}
SCSS
$custom: #cb8aff;
$custom-light: #ddadff;
$custom-dark: #000000;
JSON
{
  "hex": "#cb8aff",
  "rgb": {
    "r": 203,
    "g": 138,
    "b": 255
  },
  "hsl": {
    "h": 273.333,
    "s": 100,
    "l": 77.059
  },
  "oklch": {
    "l": 0.74373,
    "c": 0.17401,
    "h": 308.4
  },
  "luminance": 0.38093
}

Semantic roles & 50–950 ramp

primary
#CB8AFF
secondary
#E4F7D4
accent
#E60066
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #CB8AFF

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

Preview Lab → · Contrast checker → · Palette generator →

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