#9D5EDB#9D5EDB

#9D5EDB is a mid, vivid violet. Relative luminance 0.203; OKLCH L 60.8% C 0.187 H 304.7°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#9D5EDB
RGBrgb(157, 94, 219)
HSLhsl(270, 63%, 61%)
HSVhsv(270, 57%, 86%)
CMYKcmyk(28.3%, 57.1%, 0%, 14.1%)
CIE-LABlab(52.16, 49.23, -54.52)
CIE-LCHlch(52.16, 73.45, 312.08°)
OKLaboklab(60.85% 0.1066 -0.1539)
OKLCHoklch(60.85% 0.187 304.7)
XYZxyz(30.6907, 20.2881, 69.3033)
Luminance0.2029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5EDB #9CDB5E
analogous
#5F5EDB #9D5EDB #DB5EDB
triadic
#9D5EDB #DB9D5E #5EDB9D
tetradic
#9D5EDB #DB5F5E #9CDB5E #5EDBDB
square
#9D5EDB #DB5F5E #9CDB5E #5EDBDB
split-complementary
#9D5EDB #DBDB5E #5EDB5F
monochromatic
#60239C #7F2ECE #9D5EDB #BB90E6 #DAC2F1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D5EDB#FFFFFF#000000##000000
##9D5EDB1.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)
#2B7BDF
Deuteranopia (green-blind)
#457CD8
Tritanopia (blue-blind)
#927694
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9d5edb;
/* rgb */ color: rgb(157, 94, 219);
/* oklch */ color: oklch(60.8% 0.187 304.7);
Tailwind
colors: {
  custom: {
    50: '#bd8ee7',
    500: '#9d5edb',
    950: '#000000',
  },
}
SCSS
$custom: #9d5edb;
$custom-light: #bd8ee7;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5edb",
  "rgb": {
    "r": 157,
    "g": 94,
    "b": 219
  },
  "hsl": {
    "h": 270.24,
    "s": 63.452,
    "l": 61.373
  },
  "oklch": {
    "l": 0.60848,
    "c": 0.18717,
    "h": 304.7
  },
  "luminance": 0.20288
}

Semantic roles & 50–950 ramp

primary
#9D5EDB
secondary
#CAE2B3
accent
#CB1A72
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9D5EDB

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

Preview Lab → · Contrast checker → · Palette generator →

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