#9B7CEB#9B7CEB

#9B7CEB is a light, vivid violet. Relative luminance 0.274; OKLCH L 66.4% C 0.161 H 294.5°. Best body text is #000000 at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#9B7CEB
RGBrgb(155, 124, 235)
HSLhsl(257, 74%, 70%)
HSVhsv(257, 47%, 92%)
CMYKcmyk(34%, 47.2%, 0%, 7.8%)
CIE-LABlab(59.33, 36.13, -52.08)
CIE-LCHlch(59.33, 63.39, 304.75°)
OKLaboklab(66.4% 0.0668 -0.1468)
OKLCHoklch(66.4% 0.161 294.5)
XYZxyz(35.7168, 27.3814, 81.9845)
Luminance0.2738 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B7CEB #CCEB7C
analogous
#7C94EB #9B7CEB #D37CEB
triadic
#9B7CEB #EB9B7C #7CEB9B
tetradic
#9B7CEB #EB7C94 #CCEB7C #7CEBD3
square
#9B7CEB #EB7C94 #CCEB7C #7CEBD3
split-complementary
#9B7CEB #EBD37C #94EB7C
monochromatic
#501FCD #7247E3 #9B7CEB #C4B1F3 #EBE4FB

Accessibility & contrast

On white

3.24
#9B7CEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.48
#9B7CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B7CEB
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B7CEB#FFFFFF#000000##000000
##9B7CEB1.003.246.486.48
#FFFFFF3.241.0021.0021.00
#0000006.4821.001.001.00
##0000006.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5590EF
Deuteranopia (green-blind)
#5B8DE8
Tritanopia (blue-blind)
#8891A8
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #9b7ceb;
/* rgb */ color: rgb(155, 124, 235);
/* oklch */ color: oklch(66.4% 0.161 294.5);
Tailwind
colors: {
  custom: {
    50: '#bca2f2',
    500: '#9b7ceb',
    950: '#000000',
  },
}
SCSS
$custom: #9b7ceb;
$custom-light: #bca2f2;
$custom-dark: #000000;
JSON
{
  "hex": "#9b7ceb",
  "rgb": {
    "r": 155,
    "g": 124,
    "b": 235
  },
  "hsl": {
    "h": 256.757,
    "s": 73.51,
    "l": 70.392
  },
  "oklch": {
    "l": 0.66403,
    "c": 0.1613,
    "h": 294.5
  },
  "luminance": 0.27382
}

Semantic roles & 50–950 ramp

primary
#9B7CEB
secondary
#E8F1D2
accent
#D6109E
background
#FBFAFE
surface
#F7F3FD
border
#D0CDD5
text
#120F17
muted
#817F85

Preview Lab

Preview with #9B7CEB

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

Preview Lab → · Contrast checker → · Palette generator →

#9B7CEB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva