#9D5EEB#9D5EEB

#9D5EEB is a mid, highly saturated violet. Relative luminance 0.212; OKLCH L 61.9% C 0.205 H 301.2°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#9D5EEB
RGBrgb(157, 94, 235)
HSLhsl(267, 78%, 65%)
HSVhsv(267, 60%, 92%)
CMYKcmyk(33.2%, 60%, 0%, 7.8%)
CIE-LABlab(53.14, 53.06, -61.97)
CIE-LCHlch(53.14, 81.58, 310.57°)
OKLaboklab(61.87% 0.1064 -0.1757)
OKLCHoklch(61.87% 0.205 301.2)
XYZxyz(32.8992, 21.1715, 80.9344)
Luminance0.2117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5EEB #ACEB5E
analogous
#5E65EB #9D5EEB #E45EEB
triadic
#9D5EEB #EB9D5E #5EEB9D
tetradic
#9D5EEB #EB5E65 #ACEB5E #5EEBE4
square
#9D5EEB #EB5E65 #ACEB5E #5EEBE4
split-complementary
#9D5EEB #EBE45E #65EB5E
monochromatic
#5F17B8 #7C28E4 #9D5EEB #BE94F2 #DFCBF9

Accessibility & contrast

On white

4.01
#9D5EEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#9D5EEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5EEB
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5EEB#FFFFFF#000000##000000
##9D5EEB1.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF0
Deuteranopia (green-blind)
#317EE8
Tritanopia (blue-blind)
#8D7C9C
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9d5eeb;
/* rgb */ color: rgb(157, 94, 235);
/* oklch */ color: oklch(61.9% 0.205 301.2);
Tailwind
colors: {
  custom: {
    50: '#be8ef2',
    500: '#9d5eeb',
    950: '#000000',
  },
}
SCSS
$custom: #9d5eeb;
$custom-light: #be8ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5eeb",
  "rgb": {
    "r": 157,
    "g": 94,
    "b": 235
  },
  "hsl": {
    "h": 266.809,
    "s": 77.901,
    "l": 64.51
  },
  "oklch": {
    "l": 0.61873,
    "c": 0.20543,
    "h": 301.2
  },
  "luminance": 0.21172
}

Semantic roles & 50–950 ramp

primary
#9D5EEB
secondary
#D5EBBA
accent
#DA0B7E
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9D5EEB

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

Preview Lab → · Contrast checker → · Palette generator →

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