#9D5EE7#9D5EE7

#9D5EE7 is a mid, highly saturated violet. Relative luminance 0.209; OKLCH L 61.6% C 0.201 H 302.0°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#9D5EE7
RGBrgb(157, 94, 231)
HSLhsl(268, 74%, 64%)
HSVhsv(268, 59%, 91%)
CMYKcmyk(32%, 59.3%, 0%, 9.4%)
CIE-LABlab(52.89, 52.09, -60.13)
CIE-LCHlch(52.89, 79.55, 310.91°)
OKLaboklab(61.61% 0.1065 -0.1703)
OKLCHoklch(61.61% 0.201 302)
XYZxyz(32.3278, 20.9430, 77.9251)
Luminance0.2094 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5EE7 #A8E75E
analogous
#5E63E7 #9D5EE7 #E15EE7
triadic
#9D5EE7 #E79D5E #5EE79D
tetradic
#9D5EE7 #E75E63 #A8E75E #5EE7E1
square
#9D5EE7 #E75E63 #A8E75E #5EE7E1
split-complementary
#9D5EE7 #E7E15E #63E75E
monochromatic
#5F1AB0 #7D29DF #9D5EE7 #BD93EF #DEC9F7

Accessibility & contrast

On white

4.05
#9D5EE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#9D5EE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5EE7
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5EE7#FFFFFF#000000##000000
##9D5EE71.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#117DEB
Deuteranopia (green-blind)
#377EE4
Tritanopia (blue-blind)
#8E7A9A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9d5ee7;
/* rgb */ color: rgb(157, 94, 231);
/* oklch */ color: oklch(61.6% 0.201 302.0);
Tailwind
colors: {
  custom: {
    50: '#be8eef',
    500: '#9d5ee7',
    950: '#000000',
  },
}
SCSS
$custom: #9d5ee7;
$custom-light: #be8eef;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5ee7",
  "rgb": {
    "r": 157,
    "g": 94,
    "b": 231
  },
  "hsl": {
    "h": 267.591,
    "s": 74.054,
    "l": 63.725
  },
  "oklch": {
    "l": 0.61611,
    "c": 0.20087,
    "h": 302
  },
  "luminance": 0.20943
}

Semantic roles & 50–950 ramp

primary
#9D5EE7
secondary
#D2E9B8
accent
#D60F7B
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9D5EE7

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

Preview Lab → · Contrast checker → · Palette generator →

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