#9D5DE7#9D5DE7

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

Color values

HEX#9D5DE7
RGBrgb(157, 93, 231)
HSLhsl(268, 74%, 64%)
HSVhsv(268, 60%, 91%)
CMYKcmyk(32%, 59.7%, 0%, 9.4%)
CIE-LABlab(52.69, 52.61, -60.44)
CIE-LCHlch(52.69, 80.13, 311.04°)
OKLaboklab(61.47% 0.1077 -0.1713)
OKLCHoklch(61.47% 0.202 302.2)
XYZxyz(32.2394, 20.7663, 77.8956)
Luminance0.2077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5DE7 #A7E75D
analogous
#5D62E7 #9D5DE7 #E25DE7
triadic
#9D5DE7 #E79D5D #5DE79D
tetradic
#9D5DE7 #E75D62 #A7E75D #5DE7E2
square
#9D5DE7 #E75D62 #A7E75D #5DE7E2
split-complementary
#9D5DE7 #E7E25D #62E75D
monochromatic
#5F1AB0 #7D28DF #9D5DE7 #BD92EF #DDC8F7

Accessibility & contrast

On white

4.08
#9D5DE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#9D5DE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5DE7
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5DE7#FFFFFF#000000##000000
##9D5DE71.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#097DEB
Deuteranopia (green-blind)
#357DE4
Tritanopia (blue-blind)
#8E7A99
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9d5de7;
/* rgb */ color: rgb(157, 93, 231);
/* oklch */ color: oklch(61.5% 0.202 302.2);
Tailwind
colors: {
  custom: {
    50: '#be8eef',
    500: '#9d5de7',
    950: '#000000',
  },
}
SCSS
$custom: #9d5de7;
$custom-light: #be8eef;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5de7",
  "rgb": {
    "r": 157,
    "g": 93,
    "b": 231
  },
  "hsl": {
    "h": 267.826,
    "s": 74.194,
    "l": 63.529
  },
  "oklch": {
    "l": 0.6147,
    "c": 0.20228,
    "h": 302.2
  },
  "luminance": 0.20766
}

Semantic roles & 50–950 ramp

primary
#9D5DE7
secondary
#D2E8B7
accent
#D60F7A
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9D5DE7

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

Preview Lab → · Contrast checker → · Palette generator →

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