#CB7AF9#CB7AF9

#CB7AF9 is a light, vivid violet. Relative luminance 0.335; OKLCH L 71.6% C 0.192 H 311.9°. Best body text is #000000 at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#CB7AF9
RGBrgb(203, 122, 249)
HSLhsl(278, 91%, 73%)
HSVhsv(278, 51%, 98%)
CMYKcmyk(18.5%, 51%, 0%, 2.4%)
CIE-LABlab(64.53, 52.95, -51.26)
CIE-LCHlch(64.53, 73.69, 315.93°)
OKLaboklab(71.63% 0.1286 -0.1432)
OKLCHoklch(71.63% 0.192 311.9)
XYZxyz(48.6840, 33.4562, 93.4972)
Luminance0.3346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB7AF9 #A8F97A
analogous
#8C7AF9 #CB7AF9 #F97AE7
triadic
#CB7AF9 #F9CB7A #7AF9CB
tetradic
#CB7AF9 #F98C7A #A8F97A #7AE7F9
square
#CB7AF9 #F98C7A #A8F97A #7AE7F9
split-complementary
#CB7AF9 #E7F97A #7AF98C
monochromatic
#9C0BEE #B43FF6 #CB7AF9 #E2B5FC #F4E2FE

Accessibility & contrast

On white

2.73
#CB7AF9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.69
#CB7AF9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB7AF9
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB7AF9#FFFFFF#000000##000000
##CB7AF91.002.737.697.69
#FFFFFF2.731.0021.0021.00
#0000007.6921.001.001.00
##0000007.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A98FD
Deuteranopia (green-blind)
#739EF6
Tritanopia (blue-blind)
#C68FAE
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #cb7af9;
/* rgb */ color: rgb(203, 122, 249);
/* oklch */ color: oklch(71.6% 0.192 311.9);
Tailwind
colors: {
  custom: {
    50: '#dda3fc',
    500: '#cb7af9',
    950: '#000000',
  },
}
SCSS
$custom: #cb7af9;
$custom-light: #dda3fc;
$custom-dark: #000000;
JSON
{
  "hex": "#cb7af9",
  "rgb": {
    "r": 203,
    "g": 122,
    "b": 249
  },
  "hsl": {
    "h": 278.268,
    "s": 91.367,
    "l": 72.745
  },
  "oklch": {
    "l": 0.71631,
    "c": 0.19245,
    "h": 311.9
  },
  "luminance": 0.33455
}

Semantic roles & 50–950 ramp

primary
#CB7AF9
secondary
#E1F6D5
accent
#E60053
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CB7AF9

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

Preview Lab → · Contrast checker → · Palette generator →

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