#9D5AE2#9D5AE2

#9D5AE2 is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 60.7% C 0.201 H 303.7°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#9D5AE2
RGBrgb(157, 90, 226)
HSLhsl(270, 70%, 62%)
HSVhsv(270, 60%, 89%)
CMYKcmyk(30.5%, 60.2%, 0%, 11.4%)
CIE-LABlab(51.80, 52.96, -59.05)
CIE-LCHlch(51.80, 79.32, 311.89°)
OKLaboklab(60.72% 0.1114 -0.1672)
OKLCHoklch(60.72% 0.201 303.7)
XYZxyz(31.2852, 19.9715, 74.1435)
Luminance0.1997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5AE2 #9FE25A
analogous
#5A5BE2 #9D5AE2 #E15AE2
triadic
#9D5AE2 #E29D5A #5AE29D
tetradic
#9D5AE2 #E25A5B #9FE25A #5AE2E1
square
#9D5AE2 #E25A5B #9FE25A #5AE2E1
split-complementary
#9D5AE2 #E2E15A #5BE25A
monochromatic
#601DA5 #7E26D9 #9D5AE2 #BC8EEB #DBC2F4

Accessibility & contrast

On white

4.20
#9D5AE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#9D5AE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5AE2
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5AE2#FFFFFF#000000##000000
##9D5AE21.004.204.994.99
#FFFFFF4.201.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0A7AE6
Deuteranopia (green-blind)
#377BDF
Tritanopia (blue-blind)
#907696
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9d5ae2;
/* rgb */ color: rgb(157, 90, 226);
/* oklch */ color: oklch(60.7% 0.201 303.7);
Tailwind
colors: {
  custom: {
    50: '#be8cec',
    500: '#9d5ae2',
    950: '#000000',
  },
}
SCSS
$custom: #9d5ae2;
$custom-light: #be8cec;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5ae2",
  "rgb": {
    "r": 157,
    "g": 90,
    "b": 226
  },
  "hsl": {
    "h": 269.559,
    "s": 70.103,
    "l": 61.961
  },
  "oklch": {
    "l": 0.60724,
    "c": 0.20085,
    "h": 303.7
  },
  "luminance": 0.19971
}

Semantic roles & 50–950 ramp

primary
#9D5AE2
secondary
#CCE5B3
accent
#D21374
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9D5AE2

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

Preview Lab → · Contrast checker → · Palette generator →

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