#9D5EDA#9D5EDA

#9D5EDA is a mid, vivid violet. Relative luminance 0.202; OKLCH L 60.8% C 0.186 H 304.9°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#9D5EDA
RGBrgb(157, 94, 218)
HSLhsl(270, 63%, 61%)
HSVhsv(270, 57%, 85%)
CMYKcmyk(28%, 56.9%, 0%, 14.5%)
CIE-LABlab(52.10, 48.99, -54.05)
CIE-LCHlch(52.10, 72.95, 312.19°)
OKLaboklab(60.79% 0.1065 -0.1525)
OKLCHoklch(60.79% 0.186 304.9)
XYZxyz(30.5595, 20.2356, 68.6120)
Luminance0.2024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5EDA #9BDA5E
analogous
#5F5EDA #9D5EDA #DA5ED9
triadic
#9D5EDA #DA9D5E #5EDA9D
tetradic
#9D5EDA #DA5F5E #9BDA5E #5ED9DA
square
#9D5EDA #DA5F5E #9BDA5E #5ED9DA
split-complementary
#9D5EDA #D9DA5E #5EDA5F
monochromatic
#60239A #7F2FCC #9D5EDA #BB90E5 #DAC2F1

Accessibility & contrast

On white

4.16
#9D5EDA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#9D5EDA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5EDA
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5EDA#FFFFFF#000000##000000
##9D5EDA1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C7ADE
Deuteranopia (green-blind)
#457CD7
Tritanopia (blue-blind)
#927693
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9d5eda;
/* rgb */ color: rgb(157, 94, 218);
/* oklch */ color: oklch(60.8% 0.186 304.9);
Tailwind
colors: {
  custom: {
    50: '#bd8ee6',
    500: '#9d5eda',
    950: '#000000',
  },
}
SCSS
$custom: #9d5eda;
$custom-light: #bd8ee6;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5eda",
  "rgb": {
    "r": 157,
    "g": 94,
    "b": 218
  },
  "hsl": {
    "h": 270.484,
    "s": 62.626,
    "l": 61.176
  },
  "oklch": {
    "l": 0.60786,
    "c": 0.18603,
    "h": 304.9
  },
  "luminance": 0.20235
}

Semantic roles & 50–950 ramp

primary
#9D5EDA
secondary
#CAE1B3
accent
#CA1B71
background
#FCF8FE
surface
#F8F0FC
border
#D1CBD5
text
#120C16
muted
#817D84

Preview Lab

Preview with #9D5EDA

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

Preview Lab → · Contrast checker → · Palette generator →

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