#9D5BE1#9D5BE1

#9D5BE1 is a mid, vivid violet. Relative luminance 0.201; OKLCH L 60.8% C 0.198 H 303.8°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#9D5BE1
RGBrgb(157, 91, 225)
HSLhsl(270, 69%, 62%)
HSVhsv(270, 60%, 88%)
CMYKcmyk(30.2%, 59.6%, 0%, 11.8%)
CIE-LABlab(51.94, 52.21, -58.28)
CIE-LCHlch(51.94, 78.24, 311.86°)
OKLaboklab(60.8% 0.1102 -0.1649)
OKLCHoklch(60.8% 0.198 303.8)
XYZxyz(31.2333, 20.0866, 73.4512)
Luminance0.2009 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5BE1 #9FE15B
analogous
#5B5CE1 #9D5BE1 #E05BE1
triadic
#9D5BE1 #E19D5B #5BE19D
tetradic
#9D5BE1 #E15B5C #9FE15B #5BE1E0
square
#9D5BE1 #E15B5C #9FE15B #5BE1E0
split-complementary
#9D5BE1 #E1E05B #5CE15B
monochromatic
#601EA4 #7E27D7 #9D5BE1 #BC8FEA #DBC2F4

Accessibility & contrast

On white

4.19
#9D5BE1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#9D5BE1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5BE1
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5BE1#FFFFFF#000000##000000
##9D5BE11.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#147AE5
Deuteranopia (green-blind)
#3A7CDE
Tritanopia (blue-blind)
#907695
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9d5be1;
/* rgb */ color: rgb(157, 91, 225);
/* oklch */ color: oklch(60.8% 0.198 303.8);
Tailwind
colors: {
  custom: {
    50: '#be8ceb',
    500: '#9d5be1',
    950: '#000000',
  },
}
SCSS
$custom: #9d5be1;
$custom-light: #be8ceb;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5be1",
  "rgb": {
    "r": 157,
    "g": 91,
    "b": 225
  },
  "hsl": {
    "h": 269.552,
    "s": 69.072,
    "l": 61.961
  },
  "oklch": {
    "l": 0.60799,
    "c": 0.19832,
    "h": 303.8
  },
  "luminance": 0.20087
}

Semantic roles & 50–950 ramp

primary
#9D5BE1
secondary
#CCE5B3
accent
#D11474
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9D5BE1

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

Preview Lab → · Contrast checker → · Palette generator →

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