#9D5BEB#9D5BEB

#9D5BEB is a mid, highly saturated violet. Relative luminance 0.206; OKLCH L 61.5% C 0.210 H 301.6°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#9D5BEB
RGBrgb(157, 91, 235)
HSLhsl(268, 78%, 64%)
HSVhsv(268, 61%, 92%)
CMYKcmyk(33.2%, 61.3%, 0%, 7.8%)
CIE-LABlab(52.56, 54.60, -62.89)
CIE-LCHlch(52.56, 83.29, 310.96°)
OKLaboklab(61.46% 0.1098 -0.1785)
OKLCHoklch(61.46% 0.21 301.6)
XYZxyz(32.6376, 20.6483, 80.8472)
Luminance0.2065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5BEB #A9EB5B
analogous
#5B61EB #9D5BEB #E55BEB
triadic
#9D5BEB #EB9D5B #5BEB9D
tetradic
#9D5BEB #EB5B61 #A9EB5B #5BEBE5
square
#9D5BEB #EB5B61 #A9EB5B #5BEBE5
split-complementary
#9D5BEB #EBE55B #61EB5B
monochromatic
#5F16B5 #7C24E4 #9D5BEB #BE92F2 #DEC8F8

Accessibility & contrast

On white

4.09
#9D5BEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#9D5BEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5BEB
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5BEB#FFFFFF#000000##000000
##9D5BEB1.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF0
Deuteranopia (green-blind)
#2B7DE8
Tritanopia (blue-blind)
#8D7A9B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9d5beb;
/* rgb */ color: rgb(157, 91, 235);
/* oklch */ color: oklch(61.5% 0.210 301.6);
Tailwind
colors: {
  custom: {
    50: '#bf8df2',
    500: '#9d5beb',
    950: '#000000',
  },
}
SCSS
$custom: #9d5beb;
$custom-light: #bf8df2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5beb",
  "rgb": {
    "r": 157,
    "g": 91,
    "b": 235
  },
  "hsl": {
    "h": 267.5,
    "s": 78.261,
    "l": 63.922
  },
  "oklch": {
    "l": 0.61456,
    "c": 0.20955,
    "h": 301.6
  },
  "luminance": 0.20648
}

Semantic roles & 50–950 ramp

primary
#9D5BEB
secondary
#D3EAB8
accent
#DB0B7B
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9D5BEB

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

Preview Lab → · Contrast checker → · Palette generator →

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