#CB7EF8#CB7EF8

#CB7EF8 is a light, vivid violet. Relative luminance 0.344; OKLCH L 72.2% C 0.185 H 311.7°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#CB7EF8
RGBrgb(203, 126, 248)
HSLhsl(278, 90%, 73%)
HSVhsv(278, 49%, 97%)
CMYKcmyk(18.1%, 49.2%, 0%, 2.7%)
CIE-LABlab(65.28, 50.67, -49.52)
CIE-LCHlch(65.28, 70.85, 315.66°)
OKLaboklab(72.17% 0.1232 -0.1382)
OKLCHoklch(72.17% 0.185 311.7)
XYZxyz(49.0297, 34.3965, 92.8451)
Luminance0.3440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB7EF8 #ABF87E
analogous
#8E7EF8 #CB7EF8 #F87EE8
triadic
#CB7EF8 #F8CB7E #7EF8CB
tetradic
#CB7EF8 #F88E7E #ABF87E #7EE8F8
square
#CB7EF8 #F88E7E #ABF87E #7EE8F8
split-complementary
#CB7EF8 #E8F87E #7EF88E
monochromatic
#9B0DEF #B444F5 #CB7EF8 #E2B8FB #F3E2FD

Accessibility & contrast

On white

2.67
#CB7EF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.88
#CB7EF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB7EF8
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB7EF8#FFFFFF#000000##000000
##CB7EF81.002.677.887.88
#FFFFFF2.671.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#609BFC
Deuteranopia (green-blind)
#77A0F5
Tritanopia (blue-blind)
#C692B0
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cb7ef8;
/* rgb */ color: rgb(203, 126, 248);
/* oklch */ color: oklch(72.2% 0.185 311.7);
Tailwind
colors: {
  custom: {
    50: '#dda5fb',
    500: '#cb7ef8',
    950: '#000000',
  },
}
SCSS
$custom: #cb7ef8;
$custom-light: #dda5fb;
$custom-dark: #000000;
JSON
{
  "hex": "#cb7ef8",
  "rgb": {
    "r": 203,
    "g": 126,
    "b": 248
  },
  "hsl": {
    "h": 277.869,
    "s": 89.706,
    "l": 73.333
  },
  "oklch": {
    "l": 0.72169,
    "c": 0.18512,
    "h": 311.7
  },
  "luminance": 0.34396
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CB7EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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