#9D5CE8#9D5CE8

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

Color values

HEX#9D5CE8
RGBrgb(157, 92, 232)
HSLhsl(268, 75%, 64%)
HSVhsv(268, 60%, 91%)
CMYKcmyk(32.3%, 60.3%, 0%, 9%)
CIE-LABlab(52.56, 53.37, -61.21)
CIE-LCHlch(52.56, 81.21, 311.08°)
OKLaboklab(61.4% 0.1088 -0.1735)
OKLCHoklch(61.4% 0.205 302.1)
XYZxyz(32.2939, 20.6485, 78.6125)
Luminance0.2065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5CE8 #A7E85C
analogous
#5C61E8 #9D5CE8 #E35CE8
triadic
#9D5CE8 #E89D5C #5CE89D
tetradic
#9D5CE8 #E85C61 #A7E85C #5CE8E3
square
#9D5CE8 #E85C61 #A7E85C #5CE8E3
split-complementary
#9D5CE8 #E8E35C #61E85C
monochromatic
#5F19B1 #7D26E0 #9D5CE8 #BD92F0 #DDC7F7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D5CE8#FFFFFF#000000##000000
##9D5CE81.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)
#007CEC
Deuteranopia (green-blind)
#327DE5
Tritanopia (blue-blind)
#8E7999
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9d5ce8;
/* rgb */ color: rgb(157, 92, 232);
/* oklch */ color: oklch(61.4% 0.205 302.1);
Tailwind
colors: {
  custom: {
    50: '#be8df0',
    500: '#9d5ce8',
    950: '#000000',
  },
}
SCSS
$custom: #9d5ce8;
$custom-light: #be8df0;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5ce8",
  "rgb": {
    "r": 157,
    "g": 92,
    "b": 232
  },
  "hsl": {
    "h": 267.857,
    "s": 75.269,
    "l": 63.529
  },
  "oklch": {
    "l": 0.61395,
    "c": 0.2048,
    "h": 302.1
  },
  "luminance": 0.20649
}

Semantic roles & 50–950 ramp

primary
#9D5CE8
secondary
#D2E9B7
accent
#D70E7A
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9D5CE8

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

Preview Lab → · Contrast checker → · Palette generator →

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