#9B5CE7#9B5CE7

#9B5CE7 is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.1% C 0.203 H 301.5°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#9B5CE7
RGBrgb(155, 92, 231)
HSLhsl(267, 74%, 63%)
HSVhsv(267, 60%, 91%)
CMYKcmyk(32.9%, 60.2%, 0%, 9.4%)
CIE-LABlab(52.28, 52.68, -61.12)
CIE-LCHlch(52.28, 80.69, 310.76°)
OKLaboklab(61.12% 0.1063 -0.1733)
OKLCHoklch(61.12% 0.203 301.5)
XYZxyz(31.7651, 20.3923, 77.8484)
Luminance0.2039 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B5CE7 #A8E75C
analogous
#5C62E7 #9B5CE7 #E05CE7
triadic
#9B5CE7 #E79B5C #5CE79B
tetradic
#9B5CE7 #E75C62 #A8E75C #5CE7E0
square
#9B5CE7 #E75C62 #A8E75C #5CE7E0
split-complementary
#9B5CE7 #E7E05C #62E75C
monochromatic
#5D1AAF #7A27DF #9B5CE7 #BC91EF #DCC7F7

Accessibility & contrast

On white

4.14
#9B5CE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#9B5CE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9B5CE7
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B5CE7#FFFFFF#000000##000000
##9B5CE71.004.145.085.08
#FFFFFF4.141.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CEB
Deuteranopia (green-blind)
#317CE4
Tritanopia (blue-blind)
#8C7999
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9b5ce7;
/* rgb */ color: rgb(155, 92, 231);
/* oklch */ color: oklch(61.1% 0.203 301.5);
Tailwind
colors: {
  custom: {
    50: '#bd8def',
    500: '#9b5ce7',
    950: '#000000',
  },
}
SCSS
$custom: #9b5ce7;
$custom-light: #bd8def;
$custom-dark: #000000;
JSON
{
  "hex": "#9b5ce7",
  "rgb": {
    "r": 155,
    "g": 92,
    "b": 231
  },
  "hsl": {
    "h": 267.194,
    "s": 74.332,
    "l": 63.333
  },
  "oklch": {
    "l": 0.61118,
    "c": 0.20329,
    "h": 301.5
  },
  "luminance": 0.20392
}

Semantic roles & 50–950 ramp

primary
#9B5CE7
secondary
#D2E8B7
accent
#D60F7C
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #9B5CE7

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

Preview Lab → · Contrast checker → · Palette generator →

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