#9D5EDD#9D5EDD

#9D5EDD is a mid, vivid violet. Relative luminance 0.204; OKLCH L 61.0% C 0.189 H 304.2°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#9D5EDD
RGBrgb(157, 94, 221)
HSLhsl(270, 65%, 62%)
HSVhsv(270, 57%, 87%)
CMYKcmyk(29%, 57.5%, 0%, 13.3%)
CIE-LABlab(52.28, 49.70, -55.46)
CIE-LCHlch(52.28, 74.47, 311.86°)
OKLaboklab(60.97% 0.1066 -0.1567)
OKLCHoklch(60.97% 0.189 304.2)
XYZxyz(30.9556, 20.3941, 70.6982)
Luminance0.2039 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5EDD #9EDD5E
analogous
#5E5FDD #9D5EDD #DD5EDD
triadic
#9D5EDD #DD9D5E #5EDD9D
tetradic
#9D5EDD #DD5E5F #9EDD5E #5EDDDD
square
#9D5EDD #DD5E5F #9EDD5E #5EDDDD
split-complementary
#9D5EDD #DDDD5E #5FDD5E
monochromatic
#60229F #7E2CD2 #9D5EDD #BC91E8 #DBC3F2

Accessibility & contrast

On white

4.13
#9D5EDD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#9D5EDD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5EDD
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5EDD#FFFFFF#000000##000000
##9D5EDD1.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#287BE1
Deuteranopia (green-blind)
#437DDA
Tritanopia (blue-blind)
#927795
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9d5edd;
/* rgb */ color: rgb(157, 94, 221);
/* oklch */ color: oklch(61.0% 0.189 304.2);
Tailwind
colors: {
  custom: {
    50: '#be8ee8',
    500: '#9d5edd',
    950: '#000000',
  },
}
SCSS
$custom: #9d5edd;
$custom-light: #be8ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5edd",
  "rgb": {
    "r": 157,
    "g": 94,
    "b": 221
  },
  "hsl": {
    "h": 269.764,
    "s": 65.128,
    "l": 61.765
  },
  "oklch": {
    "l": 0.60973,
    "c": 0.18946,
    "h": 304.2
  },
  "luminance": 0.20394
}

Semantic roles & 50–950 ramp

primary
#9D5EDD
secondary
#CCE3B4
accent
#CD1973
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9D5EDD

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

Preview Lab → · Contrast checker → · Palette generator →

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