#9D5EA5#9D5EA5

#9D5EA5 is a mid, vivid purple. Relative luminance 0.179; OKLCH L 57.9% C 0.126 H 322.9°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#9D5EA5
RGBrgb(157, 94, 165)
HSLhsl(293, 28%, 51%)
HSVhsv(293, 43%, 65%)
CMYKcmyk(4.8%, 43%, 0%, 35.3%)
CIE-LABlab(49.36, 37.32, -27.80)
CIE-LCHlch(49.36, 46.54, 323.32°)
OKLaboklab(57.87% 0.1009 -0.0763)
OKLCHoklch(57.87% 0.126 322.9)
XYZxyz(24.6981, 17.8911, 37.7424)
Luminance0.1789 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5EA5 #66A55E
analogous
#795EA5 #9D5EA5 #A55E89
triadic
#9D5EA5 #A59D5E #5EA59D
tetradic
#9D5EA5 #A5795E #66A55E #5E89A5
square
#9D5EA5 #A5795E #66A55E #5E89A5
split-complementary
#9D5EA5 #89A55E #5EA579
monochromatic
#533158 #79477F #9D5EA5 #B585BB #CDADD1

Accessibility & contrast

On white

4.59
#9D5EA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#9D5EA5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9D5EA5
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5EA5#FFFFFF#000000##FFFFFF
##9D5EA51.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5671A8
Deuteranopia (green-blind)
#6778A3
Tritanopia (blue-blind)
#9F667A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #9d5ea5;
/* rgb */ color: rgb(157, 94, 165);
/* oklch */ color: oklch(57.9% 0.126 322.9);
Tailwind
colors: {
  custom: {
    50: '#bb8dc0',
    500: '#9d5ea5',
    950: '#000000',
  },
}
SCSS
$custom: #9d5ea5;
$custom-light: #bb8dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5ea5",
  "rgb": {
    "r": 157,
    "g": 94,
    "b": 165
  },
  "hsl": {
    "h": 293.239,
    "s": 28.287,
    "l": 50.784
  },
  "oklch": {
    "l": 0.57869,
    "c": 0.12646,
    "h": 322.9
  },
  "luminance": 0.1789
}

Semantic roles & 50–950 ramp

primary
#9D5EA5
secondary
#A3BFA0
accent
#C5636E
background
#FBF8FB
surface
#F6F0F7
border
#D0CBD0
text
#120C12
muted
#817D81

Preview Lab

Preview with #9D5EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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