#CB7AFE#CB7AFE

#CB7AFE is a light, vivid violet. Relative luminance 0.338; OKLCH L 71.9% C 0.198 H 310.7°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#CB7AFE
RGBrgb(203, 122, 254)
HSLhsl(277, 99%, 74%)
HSVhsv(277, 52%, 100%)
CMYKcmyk(20.1%, 52%, 0%, 0.4%)
CIE-LABlab(64.78, 54.01, -53.60)
CIE-LCHlch(64.78, 76.09, 315.22°)
OKLaboklab(71.9% 0.129 -0.15)
OKLCHoklch(71.9% 0.198 310.7)
XYZxyz(49.4742, 33.7723, 97.6592)
Luminance0.3377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB7AFE #ADFE7A
analogous
#897AFE #CB7AFE #FE7AEF
triadic
#CB7AFE #FECB7A #7AFECB
tetradic
#CB7AFE #FE897A #ADFE7A #7AEFFE
square
#CB7AFE #FE897A #ADFE7A #7AEFFE
split-complementary
#CB7AFE #EFFE7A #7AFE89
monochromatic
#9B02FC #B33DFE #CB7AFE #E3B7FE #F3E1FF

Accessibility & contrast

On white

2.71
#CB7AFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.75
#CB7AFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB7AFE
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB7AFE#FFFFFF#000000##000000
##CB7AFE1.002.717.757.75
#FFFFFF2.711.0021.0021.00
#0000007.7521.001.001.00
##0000007.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5699FF
Deuteranopia (green-blind)
#709FFB
Tritanopia (blue-blind)
#C590B1
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cb7afe;
/* rgb */ color: rgb(203, 122, 254);
/* oklch */ color: oklch(71.9% 0.198 310.7);
Tailwind
colors: {
  custom: {
    50: '#dda3ff',
    500: '#cb7afe',
    950: '#000000',
  },
}
SCSS
$custom: #cb7afe;
$custom-light: #dda3ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cb7afe",
  "rgb": {
    "r": 203,
    "g": 122,
    "b": 254
  },
  "hsl": {
    "h": 276.818,
    "s": 98.507,
    "l": 73.725
  },
  "oklch": {
    "l": 0.719,
    "c": 0.19786,
    "h": 310.7
  },
  "luminance": 0.33771
}

Semantic roles & 50–950 ramp

primary
#CB7AFE
secondary
#E2F7D4
accent
#E60059
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F18
muted
#837F86

Preview Lab

Preview with #CB7AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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