#CB7DF8#CB7DF8

#CB7DF8 is a light, vivid violet. Relative luminance 0.341; OKLCH L 72.0% C 0.187 H 311.8°. Best body text is #000000 at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#CB7DF8
RGBrgb(203, 125, 248)
HSLhsl(278, 90%, 73%)
HSVhsv(278, 50%, 97%)
CMYKcmyk(18.1%, 49.6%, 0%, 2.7%)
CIE-LABlab(65.08, 51.19, -49.84)
CIE-LCHlch(65.08, 71.45, 315.77°)
OKLaboklab(72.02% 0.1245 -0.1391)
OKLCHoklch(72.02% 0.187 311.8)
XYZxyz(48.9025, 34.1421, 92.8027)
Luminance0.3414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB7DF8 #AAF87D
analogous
#8D7DF8 #CB7DF8 #F87DE7
triadic
#CB7DF8 #F8CB7D #7DF8CB
tetradic
#CB7DF8 #F88D7D #AAF87D #7DE7F8
square
#CB7DF8 #F88D7D #AAF87D #7DE7F8
split-complementary
#CB7DF8 #E7F87D #7DF88D
monochromatic
#9B0DEE #B443F5 #CB7DF8 #E2B7FB #F3E2FD

Accessibility & contrast

On white

2.68
#CB7DF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.83
#CB7DF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB7DF8
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB7DF8#FFFFFF#000000##000000
##CB7DF81.002.687.837.83
#FFFFFF2.681.0021.0021.00
#0000007.8321.001.001.00
##0000007.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F9AFC
Deuteranopia (green-blind)
#76A0F5
Tritanopia (blue-blind)
#C691AF
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cb7df8;
/* rgb */ color: rgb(203, 125, 248);
/* oklch */ color: oklch(72.0% 0.187 311.8);
Tailwind
colors: {
  custom: {
    50: '#dda5fb',
    500: '#cb7df8',
    950: '#000000',
  },
}
SCSS
$custom: #cb7df8;
$custom-light: #dda5fb;
$custom-dark: #000000;
JSON
{
  "hex": "#cb7df8",
  "rgb": {
    "r": 203,
    "g": 125,
    "b": 248
  },
  "hsl": {
    "h": 278.049,
    "s": 89.781,
    "l": 73.137
  },
  "oklch": {
    "l": 0.7202,
    "c": 0.18669,
    "h": 311.8
  },
  "luminance": 0.34141
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CB7DF8

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

Preview Lab → · Contrast checker → · Palette generator →

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