#9D5BEC#9D5BEC

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

Color values

HEX#9D5BEC
RGBrgb(157, 91, 236)
HSLhsl(267, 79%, 64%)
HSVhsv(267, 61%, 93%)
CMYKcmyk(33.5%, 61.4%, 0%, 7.5%)
CIE-LABlab(52.63, 54.84, -63.35)
CIE-LCHlch(52.63, 83.79, 310.88°)
OKLaboklab(61.52% 0.1098 -0.1798)
OKLCHoklch(61.52% 0.211 301.4)
XYZxyz(32.7824, 20.7063, 81.6102)
Luminance0.2071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5BEC #AAEC5B
analogous
#5B62EC #9D5BEC #E55BEC
triadic
#9D5BEC #EC9D5B #5BEC9D
tetradic
#9D5BEC #EC5B62 #AAEC5B #5BECE5
square
#9D5BEC #EC5B62 #AAEC5B #5BECE5
split-complementary
#9D5BEC #ECE55B #62EC5B
monochromatic
#5F15B7 #7C24E6 #9D5BEC #BE92F2 #DFC9F9

Accessibility & contrast

On white

4.08
#9D5BEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#9D5BEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5BEC
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5BEC#FFFFFF#000000##000000
##9D5BEC1.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF1
Deuteranopia (green-blind)
#2A7DE9
Tritanopia (blue-blind)
#8D7A9B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9d5bec;
/* rgb */ color: rgb(157, 91, 236);
/* oklch */ color: oklch(61.5% 0.211 301.4);
Tailwind
colors: {
  custom: {
    50: '#bf8df3',
    500: '#9d5bec',
    950: '#000000',
  },
}
SCSS
$custom: #9d5bec;
$custom-light: #bf8df3;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5bec",
  "rgb": {
    "r": 157,
    "g": 91,
    "b": 236
  },
  "hsl": {
    "h": 267.31,
    "s": 79.235,
    "l": 64.118
  },
  "oklch": {
    "l": 0.61523,
    "c": 0.21066,
    "h": 301.4
  },
  "luminance": 0.20706
}

Semantic roles & 50–950 ramp

primary
#9D5BEC
secondary
#D4EBB8
accent
#DC0A7C
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9D5BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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