#CB7AFB#CB7AFB

#CB7AFB is a light, vivid violet. Relative luminance 0.336; OKLCH L 71.7% C 0.195 H 311.4°. Best body text is #000000 at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#CB7AFB
RGBrgb(203, 122, 251)
HSLhsl(278, 94%, 73%)
HSVhsv(278, 51%, 98%)
CMYKcmyk(19.1%, 51.4%, 0%, 1.6%)
CIE-LABlab(64.63, 53.37, -52.19)
CIE-LCHlch(64.63, 74.65, 315.64°)
OKLaboklab(71.74% 0.1288 -0.1459)
OKLCHoklch(71.74% 0.195 311.4)
XYZxyz(48.9976, 33.5816, 95.1488)
Luminance0.3358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB7AFB #AAFB7A
analogous
#8A7AFB #CB7AFB #FB7AEB
triadic
#CB7AFB #FBCB7A #7AFBCB
tetradic
#CB7AFB #FB8A7A #AAFB7A #7AEBFB
square
#CB7AFB #FB8A7A #AAFB7A #7AEBFB
split-complementary
#CB7AFB #EBFB7A #7AFB8A
monochromatic
#9B07F3 #B43FF9 #CB7AFB #E2B5FD #F3E1FE

Accessibility & contrast

On white

2.72
#CB7AFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.72
#CB7AFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB7AFB
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB7AFB#FFFFFF#000000##000000
##CB7AFB1.002.727.727.72
#FFFFFF2.721.0021.0021.00
#0000007.7221.001.001.00
##0000007.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5899FF
Deuteranopia (green-blind)
#729EF8
Tritanopia (blue-blind)
#C68FAF
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cb7afb;
/* rgb */ color: rgb(203, 122, 251);
/* oklch */ color: oklch(71.7% 0.195 311.4);
Tailwind
colors: {
  custom: {
    50: '#dda3fd',
    500: '#cb7afb',
    950: '#000000',
  },
}
SCSS
$custom: #cb7afb;
$custom-light: #dda3fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cb7afb",
  "rgb": {
    "r": 203,
    "g": 122,
    "b": 251
  },
  "hsl": {
    "h": 277.674,
    "s": 94.161,
    "l": 73.137
  },
  "oklch": {
    "l": 0.71738,
    "c": 0.19461,
    "h": 311.4
  },
  "luminance": 0.33581
}

Semantic roles & 50–950 ramp

primary
#CB7AFB
secondary
#E1F6D5
accent
#E60055
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F18
muted
#837F86

Preview Lab

Preview with #CB7AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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