#9D5AE1#9D5AE1

#9D5AE1 is a mid, vivid violet. Relative luminance 0.199; OKLCH L 60.7% C 0.200 H 303.9°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#9D5AE1
RGBrgb(157, 90, 225)
HSLhsl(270, 69%, 62%)
HSVhsv(270, 60%, 88%)
CMYKcmyk(30.2%, 60%, 0%, 11.8%)
CIE-LABlab(51.74, 52.73, -58.58)
CIE-LCHlch(51.74, 78.82, 311.99°)
OKLaboklab(60.66% 0.1114 -0.1658)
OKLCHoklch(60.66% 0.2 303.9)
XYZxyz(31.1484, 19.9168, 73.4229)
Luminance0.1992 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5AE1 #9EE15A
analogous
#5A5BE1 #9D5AE1 #E15AE1
triadic
#9D5AE1 #E19D5A #5AE19D
tetradic
#9D5AE1 #E15A5B #9EE15A #5AE1E1
square
#9D5AE1 #E15A5B #9EE15A #5AE1E1
split-complementary
#9D5AE1 #E1E15A #5BE15A
monochromatic
#601EA3 #7E27D7 #9D5AE1 #BC8EEA #DBC2F4

Accessibility & contrast

On white

4.21
#9D5AE1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#9D5AE1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5AE1
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5AE1#FFFFFF#000000##000000
##9D5AE11.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0F7AE5
Deuteranopia (green-blind)
#387BDE
Tritanopia (blue-blind)
#907695
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9d5ae1;
/* rgb */ color: rgb(157, 90, 225);
/* oklch */ color: oklch(60.7% 0.200 303.9);
Tailwind
colors: {
  custom: {
    50: '#be8ceb',
    500: '#9d5ae1',
    950: '#000000',
  },
}
SCSS
$custom: #9d5ae1;
$custom-light: #be8ceb;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5ae1",
  "rgb": {
    "r": 157,
    "g": 90,
    "b": 225
  },
  "hsl": {
    "h": 269.778,
    "s": 69.231,
    "l": 61.765
  },
  "oklch": {
    "l": 0.60659,
    "c": 0.19974,
    "h": 303.9
  },
  "luminance": 0.19917
}

Semantic roles & 50–950 ramp

primary
#9D5AE1
secondary
#CCE4B2
accent
#D11473
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9D5AE1

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

Preview Lab → · Contrast checker → · Palette generator →

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