#9D5BEA#9D5BEA

#9D5BEA is a mid, highly saturated violet. Relative luminance 0.206; OKLCH L 61.4% C 0.208 H 301.8°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#9D5BEA
RGBrgb(157, 91, 234)
HSLhsl(268, 77%, 64%)
HSVhsv(268, 61%, 92%)
CMYKcmyk(32.9%, 61.1%, 0%, 8.2%)
CIE-LABlab(52.50, 54.36, -62.44)
CIE-LCHlch(52.50, 82.79, 311.05°)
OKLaboklab(61.39% 0.1099 -0.1771)
OKLCHoklch(61.39% 0.208 301.8)
XYZxyz(32.4935, 20.5907, 80.0885)
Luminance0.2059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5BEA #A8EA5B
analogous
#5B60EA #9D5BEA #E45BEA
triadic
#9D5BEA #EA9D5B #5BEA9D
tetradic
#9D5BEA #EA5B60 #A8EA5B #5BEAE4
square
#9D5BEA #EA5B60 #A8EA5B #5BEAE4
split-complementary
#9D5BEA #EAE45B #60EA5B
monochromatic
#5F17B4 #7D25E3 #9D5BEA #BD91F1 #DEC8F8

Accessibility & contrast

On white

4.10
#9D5BEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#9D5BEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5BEA
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5BEA#FFFFFF#000000##000000
##9D5BEA1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CEF
Deuteranopia (green-blind)
#2D7DE7
Tritanopia (blue-blind)
#8D799A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9d5bea;
/* rgb */ color: rgb(157, 91, 234);
/* oklch */ color: oklch(61.4% 0.208 301.8);
Tailwind
colors: {
  custom: {
    50: '#bf8df1',
    500: '#9d5bea',
    950: '#000000',
  },
}
SCSS
$custom: #9d5bea;
$custom-light: #bf8df1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5bea",
  "rgb": {
    "r": 157,
    "g": 91,
    "b": 234
  },
  "hsl": {
    "h": 267.692,
    "s": 77.297,
    "l": 63.725
  },
  "oklch": {
    "l": 0.61389,
    "c": 0.20843,
    "h": 301.8
  },
  "luminance": 0.20591
}

Semantic roles & 50–950 ramp

primary
#9D5BEA
secondary
#D2EAB7
accent
#DA0C7B
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9D5BEA

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

Preview Lab → · Contrast checker → · Palette generator →

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