#9D5EEA#9D5EEA

#9D5EEA is a mid, highly saturated violet. Relative luminance 0.211; OKLCH L 61.8% C 0.204 H 301.4°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#9D5EEA
RGBrgb(157, 94, 234)
HSLhsl(267, 77%, 64%)
HSVhsv(267, 60%, 92%)
CMYKcmyk(32.9%, 59.8%, 0%, 8.2%)
CIE-LABlab(53.07, 52.82, -61.51)
CIE-LCHlch(53.07, 81.08, 310.65°)
OKLaboklab(61.81% 0.1064 -0.1744)
OKLCHoklch(61.81% 0.204 301.4)
XYZxyz(32.7551, 21.1139, 80.1757)
Luminance0.2111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5EEA #ABEA5E
analogous
#5E65EA #9D5EEA #E35EEA
triadic
#9D5EEA #EA9D5E #5EEA9D
tetradic
#9D5EEA #EA5E65 #ABEA5E #5EEAE3
square
#9D5EEA #EA5E65 #ABEA5E #5EEAE3
split-complementary
#9D5EEA #EAE35E #65EA5E
monochromatic
#5F18B6 #7C28E3 #9D5EEA #BE94F1 #DFCAF8

Accessibility & contrast

On white

4.02
#9D5EEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#9D5EEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5EEA
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5EEA#FFFFFF#000000##000000
##9D5EEA1.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#027EEE
Deuteranopia (green-blind)
#337EE7
Tritanopia (blue-blind)
#8D7B9B
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9d5eea;
/* rgb */ color: rgb(157, 94, 234);
/* oklch */ color: oklch(61.8% 0.204 301.4);
Tailwind
colors: {
  custom: {
    50: '#be8ef1',
    500: '#9d5eea',
    950: '#000000',
  },
}
SCSS
$custom: #9d5eea;
$custom-light: #be8ef1;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5eea",
  "rgb": {
    "r": 157,
    "g": 94,
    "b": 234
  },
  "hsl": {
    "h": 267,
    "s": 76.923,
    "l": 64.314
  },
  "oklch": {
    "l": 0.61807,
    "c": 0.20429,
    "h": 301.4
  },
  "luminance": 0.21114
}

Semantic roles & 50–950 ramp

primary
#9D5EEA
secondary
#D4EABA
accent
#D90C7D
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9D5EEA

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

Preview Lab → · Contrast checker → · Palette generator →

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