#9D5CEB#9D5CEB

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

Color values

HEX#9D5CEB
RGBrgb(157, 92, 235)
HSLhsl(267, 78%, 64%)
HSVhsv(267, 61%, 92%)
CMYKcmyk(33.2%, 60.9%, 0%, 7.8%)
CIE-LABlab(52.75, 54.09, -62.59)
CIE-LCHlch(52.75, 82.72, 310.83°)
OKLaboklab(61.59% 0.1087 -0.1776)
OKLCHoklch(61.59% 0.208 301.5)
XYZxyz(32.7236, 20.8204, 80.8759)
Luminance0.2082 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5CEB #AAEB5C
analogous
#5C63EB #9D5CEB #E55CEB
triadic
#9D5CEB #EB9D5C #5CEB9D
tetradic
#9D5CEB #EB5C63 #AAEB5C #5CEBE5
square
#9D5CEB #EB5C63 #AAEB5C #5CEBE5
split-complementary
#9D5CEB #EBE55C #63EB5C
monochromatic
#5F16B6 #7C25E4 #9D5CEB #BE93F2 #DFC9F8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9D5CEB#FFFFFF#000000##000000
##9D5CEB1.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)
#007DF0
Deuteranopia (green-blind)
#2D7DE8
Tritanopia (blue-blind)
#8D7A9B
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9d5ceb;
/* rgb */ color: rgb(157, 92, 235);
/* oklch */ color: oklch(61.6% 0.208 301.5);
Tailwind
colors: {
  custom: {
    50: '#bf8df2',
    500: '#9d5ceb',
    950: '#000000',
  },
}
SCSS
$custom: #9d5ceb;
$custom-light: #bf8df2;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5ceb",
  "rgb": {
    "r": 157,
    "g": 92,
    "b": 235
  },
  "hsl": {
    "h": 267.273,
    "s": 78.142,
    "l": 64.118
  },
  "oklch": {
    "l": 0.61594,
    "c": 0.20818,
    "h": 301.5
  },
  "luminance": 0.20821
}

Semantic roles & 50–950 ramp

primary
#9D5CEB
secondary
#D4EAB8
accent
#DA0B7C
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9D5CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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