#9D5BEE#9D5BEE

#9D5BEE is a mid, highly saturated violet. Relative luminance 0.208; OKLCH L 61.7% C 0.213 H 301.0°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#9D5BEE
RGBrgb(157, 91, 238)
HSLhsl(267, 81%, 65%)
HSVhsv(267, 62%, 93%)
CMYKcmyk(34%, 61.8%, 0%, 6.7%)
CIE-LABlab(52.76, 55.33, -64.26)
CIE-LCHlch(52.76, 84.80, 310.73°)
OKLaboklab(61.66% 0.1097 -0.1825)
OKLCHoklch(61.66% 0.213 301)
XYZxyz(33.0746, 20.8231, 83.1491)
Luminance0.2082 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5BEE #ACEE5B
analogous
#5B63EE #9D5BEE #E75BEE
triadic
#9D5BEE #EE9D5B #5BEE9D
tetradic
#9D5BEE #EE5B63 #ACEE5B #5BEEE7
square
#9D5BEE #EE5B63 #ACEE5B #5BEEE7
split-complementary
#9D5BEE #EEE75B #63EE5B
monochromatic
#5F13BB #7C24E8 #9D5BEE #BE92F4 #DFCAF9

Accessibility & contrast

On white

4.07
#9D5BEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#9D5BEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5BEE
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5BEE#FFFFFF#000000##000000
##9D5BEE1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF3
Deuteranopia (green-blind)
#267DEB
Tritanopia (blue-blind)
#8C7B9C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9d5bee;
/* rgb */ color: rgb(157, 91, 238);
/* oklch */ color: oklch(61.7% 0.213 301.0);
Tailwind
colors: {
  custom: {
    50: '#bf8df4',
    500: '#9d5bee',
    950: '#000000',
  },
}
SCSS
$custom: #9d5bee;
$custom-light: #bf8df4;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5bee",
  "rgb": {
    "r": 157,
    "g": 91,
    "b": 238
  },
  "hsl": {
    "h": 266.939,
    "s": 81.215,
    "l": 64.51
  },
  "oklch": {
    "l": 0.61657,
    "c": 0.21289,
    "h": 301
  },
  "luminance": 0.20823
}

Semantic roles & 50–950 ramp

primary
#9D5BEE
secondary
#D5ECB9
accent
#DE087E
background
#FCF8FF
surface
#F8F0FE
border
#D1CBD6
text
#130C17
muted
#827D85

Preview Lab

Preview with #9D5BEE

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

Preview Lab → · Contrast checker → · Palette generator →

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