#9B5CEE#9B5CEE

#9B5CEE is a mid, highly saturated violet. Relative luminance 0.208; OKLCH L 61.6% C 0.211 H 300.1°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#9B5CEE
RGBrgb(155, 92, 238)
HSLhsl(266, 81%, 65%)
HSVhsv(266, 61%, 93%)
CMYKcmyk(34.9%, 61.3%, 0%, 6.7%)
CIE-LABlab(52.73, 54.39, -64.32)
CIE-LCHlch(52.73, 84.24, 310.22°)
OKLaboklab(61.59% 0.106 -0.1827)
OKLCHoklch(61.59% 0.211 300.1)
XYZxyz(32.7736, 20.7956, 83.1597)
Luminance0.2080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5CEE #AFEE5C
analogous
#5C66EE #9B5CEE #E45CEE
triadic
#9B5CEE #EE9B5C #5CEE9B
tetradic
#9B5CEE #EE5C66 #AFEE5C #5CEEE4
square
#9B5CEE #EE5C66 #AFEE5C #5CEEE4
split-complementary
#9B5CEE #EEE45C #66EE5C
monochromatic
#5C14BC #7925E8 #9B5CEE #BD93F4 #DFCBFA

Accessibility & contrast

On white

4.07
#9B5CEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#9B5CEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5CEE
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5CEE#FFFFFF#000000##000000
##9B5CEE1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF3
Deuteranopia (green-blind)
#247DEB
Tritanopia (blue-blind)
#897C9D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9b5cee;
/* rgb */ color: rgb(155, 92, 238);
/* oklch */ color: oklch(61.6% 0.211 300.1);
Tailwind
colors: {
  custom: {
    50: '#bd8df4',
    500: '#9b5cee',
    950: '#000000',
  },
}
SCSS
$custom: #9b5cee;
$custom-light: #bd8df4;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5cee",
  "rgb": {
    "r": 155,
    "g": 92,
    "b": 238
  },
  "hsl": {
    "h": 265.89,
    "s": 81.111,
    "l": 64.706
  },
  "oklch": {
    "l": 0.61586,
    "c": 0.21122,
    "h": 300.1
  },
  "luminance": 0.20796
}

Semantic roles & 50–950 ramp

primary
#9B5CEE
secondary
#D6ECBA
accent
#DD0881
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9B5CEE

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

Preview Lab → · Contrast checker → · Palette generator →

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