#CB7AFD#CB7AFD

#CB7AFD is a light, vivid violet. Relative luminance 0.337; OKLCH L 71.8% C 0.197 H 310.9°. Best body text is #000000 at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#CB7AFD
RGBrgb(203, 122, 253)
HSLhsl(277, 97%, 74%)
HSVhsv(277, 52%, 99%)
CMYKcmyk(19.8%, 51.8%, 0%, 0.8%)
CIE-LABlab(64.73, 53.80, -53.13)
CIE-LCHlch(64.73, 75.61, 315.36°)
OKLaboklab(71.85% 0.1289 -0.1487)
OKLCHoklch(71.85% 0.197 310.9)
XYZxyz(49.3145, 33.7084, 96.8180)
Luminance0.3371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB7AFD #ACFD7A
analogous
#897AFD #CB7AFD #FD7AEE
triadic
#CB7AFD #FDCB7A #7AFDCB
tetradic
#CB7AFD #FD897A #ACFD7A #7AEEFD
square
#CB7AFD #FD897A #ACFD7A #7AEEFD
split-complementary
#CB7AFD #EEFD7A #7AFD89
monochromatic
#9B04F9 #B33EFC #CB7AFD #E3B6FE #F3E1FF

Accessibility & contrast

On white

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

On black

7.74
#CB7AFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB7AFD
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB7AFD#FFFFFF#000000##000000
##CB7AFD1.002.717.747.74
#FFFFFF2.711.0021.0021.00
#0000007.7421.001.001.00
##0000007.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5799FF
Deuteranopia (green-blind)
#709FFA
Tritanopia (blue-blind)
#C590B0
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cb7afd;
/* rgb */ color: rgb(203, 122, 253);
/* oklch */ color: oklch(71.8% 0.197 310.9);
Tailwind
colors: {
  custom: {
    50: '#dda3fe',
    500: '#cb7afd',
    950: '#000000',
  },
}
SCSS
$custom: #cb7afd;
$custom-light: #dda3fe;
$custom-dark: #000000;
JSON
{
  "hex": "#cb7afd",
  "rgb": {
    "r": 203,
    "g": 122,
    "b": 253
  },
  "hsl": {
    "h": 277.099,
    "s": 97.037,
    "l": 73.529
  },
  "oklch": {
    "l": 0.71846,
    "c": 0.19678,
    "h": 310.9
  },
  "luminance": 0.33707
}

Semantic roles & 50–950 ramp

primary
#CB7AFD
secondary
#E1F7D4
accent
#E60058
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F18
muted
#837F86

Preview Lab

Preview with #CB7AFD

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

Preview Lab → · Contrast checker → · Palette generator →

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