#CB9AFA#CB9AFA

#CB9AFA is a light, vivid violet. Relative luminance 0.427; OKLCH L 76.8% C 0.142 H 306.8°. Best body text is #000000 at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#CB9AFA
RGBrgb(203, 154, 250)
HSLhsl(271, 91%, 79%)
HSVhsv(271, 38%, 98%)
CMYKcmyk(18.8%, 38.4%, 0%, 2%)
CIE-LABlab(71.36, 36.13, -41.06)
CIE-LCHlch(71.36, 54.69, 311.34°)
OKLaboklab(76.76% 0.0852 -0.1138)
OKLCHoklch(76.76% 0.142 306.8)
XYZxyz(53.4361, 42.7103, 95.8528)
Luminance0.4271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB9AFA #C9FA9A
analogous
#9B9AFA #CB9AFA #FA9AF9
triadic
#CB9AFA #FACB9A #9AFACB
tetradic
#CB9AFA #FA9B9A #C9FA9A #9AF9FA
square
#CB9AFA #FA9B9A #C9FA9A #9AF9FA
split-complementary
#CB9AFA #F9FA9A #9AFA9B
monochromatic
#8F25F4 #AD60F7 #CB9AFA #E9D4FD #F0E2FE

Accessibility & contrast

On white

2.20
#CB9AFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.54
#CB9AFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB9AFA
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB9AFA#FFFFFF#000000##000000
##CB9AFA1.002.209.549.54
#FFFFFF2.201.0021.0021.00
#0000009.5421.001.001.00
##0000009.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#85ADFE
Deuteranopia (green-blind)
#90AFF7
Tritanopia (blue-blind)
#C4A9BE
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #cb9afa;
/* rgb */ color: rgb(203, 154, 250);
/* oklch */ color: oklch(76.8% 0.142 306.8);
Tailwind
colors: {
  custom: {
    50: '#dcb8fc',
    500: '#cb9afa',
    950: '#000000',
  },
}
SCSS
$custom: #cb9afa;
$custom-light: #dcb8fc;
$custom-dark: #000000;
JSON
{
  "hex": "#cb9afa",
  "rgb": {
    "r": 203,
    "g": 154,
    "b": 250
  },
  "hsl": {
    "h": 270.625,
    "s": 90.566,
    "l": 79.216
  },
  "oklch": {
    "l": 0.76757,
    "c": 0.14216,
    "h": 306.8
  },
  "luminance": 0.4271
}

Semantic roles & 50–950 ramp

primary
#CB9AFA
secondary
#E5F6D5
accent
#E60070
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CB9AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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