#9B7BEA#9B7BEA

#9B7BEA is a light, vivid violet. Relative luminance 0.271; OKLCH L 66.2% C 0.162 H 294.9°. Best body text is #000000 at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#9B7BEA
RGBrgb(155, 123, 234)
HSLhsl(257, 73%, 70%)
HSVhsv(257, 47%, 92%)
CMYKcmyk(33.8%, 47.4%, 0%, 8.2%)
CIE-LABlab(59.04, 36.44, -51.97)
CIE-LCHlch(59.04, 63.48, 305.04°)
OKLaboklab(66.17% 0.068 -0.1465)
OKLCHoklch(66.17% 0.162 294.9)
XYZxyz(35.4480, 27.0744, 81.1842)
Luminance0.2707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B7BEA #CAEA7B
analogous
#7B93EA #9B7BEA #D27BEA
triadic
#9B7BEA #EA9B7B #7BEA9B
tetradic
#9B7BEA #EA7B93 #CAEA7B #7BEAD2
square
#9B7BEA #EA7B93 #CAEA7B #7BEAD2
split-complementary
#9B7BEA #EAD27B #93EA7B
monochromatic
#5120CA #7346E2 #9B7BEA #C3B0F2 #EBE5FB

Accessibility & contrast

On white

3.27
#9B7BEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.41
#9B7BEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B7BEA
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B7BEA#FFFFFF#000000##000000
##9B7BEA1.003.276.416.41
#FFFFFF3.271.0021.0021.00
#0000006.4121.001.001.00
##0000006.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#558FEE
Deuteranopia (green-blind)
#5A8CE7
Tritanopia (blue-blind)
#8990A7
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #9b7bea;
/* rgb */ color: rgb(155, 123, 234);
/* oklch */ color: oklch(66.2% 0.162 294.9);
Tailwind
colors: {
  custom: {
    50: '#bca2f1',
    500: '#9b7bea',
    950: '#000000',
  },
}
SCSS
$custom: #9b7bea;
$custom-light: #bca2f1;
$custom-dark: #000000;
JSON
{
  "hex": "#9b7bea",
  "rgb": {
    "r": 155,
    "g": 123,
    "b": 234
  },
  "hsl": {
    "h": 257.297,
    "s": 72.549,
    "l": 70
  },
  "oklch": {
    "l": 0.66174,
    "c": 0.16151,
    "h": 294.9
  },
  "luminance": 0.27075
}

Semantic roles & 50–950 ramp

primary
#9B7BEA
secondary
#E7F0D1
accent
#D5119C
background
#FBFAFE
surface
#F7F3FD
border
#D0CDD5
text
#120F17
muted
#817F85

Preview Lab

Preview with #9B7BEA

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

Preview Lab → · Contrast checker → · Palette generator →

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