#9D5BE2#9D5BE2

#9D5BE2 is a mid, vivid violet. Relative luminance 0.201; OKLCH L 60.9% C 0.199 H 303.5°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#9D5BE2
RGBrgb(157, 91, 226)
HSLhsl(269, 70%, 62%)
HSVhsv(269, 60%, 89%)
CMYKcmyk(30.5%, 59.7%, 0%, 11.4%)
CIE-LABlab(52.00, 52.45, -58.74)
CIE-LCHlch(52.00, 78.75, 311.76°)
OKLaboklab(60.86% 0.1102 -0.1663)
OKLCHoklch(60.86% 0.199 303.5)
XYZxyz(31.3701, 20.1413, 74.1718)
Luminance0.2014 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5BE2 #A0E25B
analogous
#5B5DE2 #9D5BE2 #E05BE2
triadic
#9D5BE2 #E29D5B #5BE29D
tetradic
#9D5BE2 #E25B5D #A0E25B #5BE2E0
square
#9D5BE2 #E25B5D #A0E25B #5BE2E0
split-complementary
#9D5BE2 #E2E05B #5DE25B
monochromatic
#601DA5 #7E27D9 #9D5BE2 #BC8FEB #DBC3F4

Accessibility & contrast

On white

4.18
#9D5BE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#9D5BE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5BE2
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5BE2#FFFFFF#000000##000000
##9D5BE21.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#117AE6
Deuteranopia (green-blind)
#397CDF
Tritanopia (blue-blind)
#907796
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9d5be2;
/* rgb */ color: rgb(157, 91, 226);
/* oklch */ color: oklch(60.9% 0.199 303.5);
Tailwind
colors: {
  custom: {
    50: '#be8cec',
    500: '#9d5be2',
    950: '#000000',
  },
}
SCSS
$custom: #9d5be2;
$custom-light: #be8cec;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5be2",
  "rgb": {
    "r": 157,
    "g": 91,
    "b": 226
  },
  "hsl": {
    "h": 269.333,
    "s": 69.948,
    "l": 62.157
  },
  "oklch": {
    "l": 0.60863,
    "c": 0.19945,
    "h": 303.5
  },
  "luminance": 0.20141
}

Semantic roles & 50–950 ramp

primary
#9D5BE2
secondary
#CDE5B4
accent
#D21475
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9D5BE2

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

Preview Lab → · Contrast checker → · Palette generator →

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