#9D5DE8#9D5DE8

#9D5DE8 is a mid, highly saturated violet. Relative luminance 0.208; OKLCH L 61.5% C 0.203 H 301.9°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#9D5DE8
RGBrgb(157, 93, 232)
HSLhsl(268, 75%, 64%)
HSVhsv(268, 60%, 91%)
CMYKcmyk(32.3%, 59.9%, 0%, 9%)
CIE-LABlab(52.76, 52.85, -60.90)
CIE-LCHlch(52.76, 80.64, 310.95°)
OKLaboklab(61.54% 0.1076 -0.1726)
OKLCHoklch(61.54% 0.203 301.9)
XYZxyz(32.3811, 20.8229, 78.6416)
Luminance0.2082 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5DE8 #A8E85D
analogous
#5D62E8 #9D5DE8 #E25DE8
triadic
#9D5DE8 #E89D5D #5DE89D
tetradic
#9D5DE8 #E85D62 #A8E85D #5DE8E2
square
#9D5DE8 #E85D62 #A8E85D #5DE8E2
split-complementary
#9D5DE8 #E8E25D #62E85D
monochromatic
#5F19B1 #7D27E0 #9D5DE8 #BD93F0 #DEC8F7

Accessibility & contrast

On white

4.07
#9D5DE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#9D5DE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5DE8
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5DE8#FFFFFF#000000##000000
##9D5DE81.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#047DEC
Deuteranopia (green-blind)
#347DE5
Tritanopia (blue-blind)
#8E7A9A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9d5de8;
/* rgb */ color: rgb(157, 93, 232);
/* oklch */ color: oklch(61.5% 0.203 301.9);
Tailwind
colors: {
  custom: {
    50: '#be8ef0',
    500: '#9d5de8',
    950: '#000000',
  },
}
SCSS
$custom: #9d5de8;
$custom-light: #be8ef0;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5de8",
  "rgb": {
    "r": 157,
    "g": 93,
    "b": 232
  },
  "hsl": {
    "h": 267.626,
    "s": 75.135,
    "l": 63.725
  },
  "oklch": {
    "l": 0.61535,
    "c": 0.20341,
    "h": 301.9
  },
  "luminance": 0.20823
}

Semantic roles & 50–950 ramp

primary
#9D5DE8
secondary
#D2E9B8
accent
#D70E7B
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9D5DE8

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

Preview Lab → · Contrast checker → · Palette generator →

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