#9D5AE8#9D5AE8

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

Color values

HEX#9D5AE8
RGBrgb(157, 90, 232)
HSLhsl(268, 76%, 63%)
HSVhsv(268, 61%, 91%)
CMYKcmyk(32.3%, 61.2%, 0%, 9%)
CIE-LABlab(52.18, 54.39, -61.82)
CIE-LCHlch(52.18, 82.34, 311.34°)
OKLaboklab(61.12% 0.1111 -0.1753)
OKLCHoklch(61.12% 0.208 302.4)
XYZxyz(32.1229, 20.3066, 78.5555)
Luminance0.2031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5AE8 #A5E85A
analogous
#5A5EE8 #9D5AE8 #E45AE8
triadic
#9D5AE8 #E89D5A #5AE89D
tetradic
#9D5AE8 #E85A5E #A5E85A #5AE8E4
square
#9D5AE8 #E85A5E #A5E85A #5AE8E4
split-complementary
#9D5AE8 #E8E45A #5EE85A
monochromatic
#6018AF #7D24E1 #9D5AE8 #BD90EF #DDC5F7

Accessibility & contrast

On white

4.15
#9D5AE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#9D5AE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5AE8
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5AE8#FFFFFF#000000##000000
##9D5AE81.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BEC
Deuteranopia (green-blind)
#2F7CE5
Tritanopia (blue-blind)
#8E7899
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9d5ae8;
/* rgb */ color: rgb(157, 90, 232);
/* oklch */ color: oklch(61.1% 0.208 302.4);
Tailwind
colors: {
  custom: {
    50: '#be8cf0',
    500: '#9d5ae8',
    950: '#000000',
  },
}
SCSS
$custom: #9d5ae8;
$custom-light: #be8cf0;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5ae8",
  "rgb": {
    "r": 157,
    "g": 90,
    "b": 232
  },
  "hsl": {
    "h": 268.31,
    "s": 75.532,
    "l": 63.137
  },
  "oklch": {
    "l": 0.61119,
    "c": 0.20756,
    "h": 302.4
  },
  "luminance": 0.20307
}

Semantic roles & 50–950 ramp

primary
#9D5AE8
secondary
#D0E8B5
accent
#D80E78
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9D5AE8

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

Preview Lab → · Contrast checker → · Palette generator →

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