#9D5AEB#9D5AEB

#9D5AEB is a mid, highly saturated violet. Relative luminance 0.205; OKLCH L 61.3% C 0.211 H 301.7°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#9D5AEB
RGBrgb(157, 90, 235)
HSLhsl(268, 78%, 64%)
HSVhsv(268, 62%, 92%)
CMYKcmyk(33.2%, 61.7%, 0%, 7.8%)
CIE-LABlab(52.37, 55.11, -63.20)
CIE-LCHlch(52.37, 83.85, 311.09°)
OKLaboklab(61.32% 0.111 -0.1793)
OKLCHoklch(61.32% 0.211 301.7)
XYZxyz(32.5527, 20.4785, 80.8189)
Luminance0.2048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5AEB #A8EB5A
analogous
#5A5FEB #9D5AEB #E55AEB
triadic
#9D5AEB #EB9D5A #5AEB9D
tetradic
#9D5AEB #EB5A5F #A8EB5A #5AEBE5
square
#9D5AEB #EB5A5F #A8EB5A #5AEBE5
split-complementary
#9D5AEB #EBE55A #5FEB5A
monochromatic
#5F16B5 #7D23E4 #9D5AEB #BD91F2 #DEC7F8

Accessibility & contrast

On white

4.12
#9D5AEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#9D5AEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5AEB
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5AEB#FFFFFF#000000##000000
##9D5AEB1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF0
Deuteranopia (green-blind)
#297CE8
Tritanopia (blue-blind)
#8D799A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9d5aeb;
/* rgb */ color: rgb(157, 90, 235);
/* oklch */ color: oklch(61.3% 0.211 301.7);
Tailwind
colors: {
  custom: {
    50: '#bf8cf2',
    500: '#9d5aeb',
    950: '#000000',
  },
}
SCSS
$custom: #9d5aeb;
$custom-light: #bf8cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5aeb",
  "rgb": {
    "r": 157,
    "g": 90,
    "b": 235
  },
  "hsl": {
    "h": 267.724,
    "s": 78.378,
    "l": 63.725
  },
  "oklch": {
    "l": 0.61319,
    "c": 0.2109,
    "h": 301.7
  },
  "luminance": 0.20479
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9D5AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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