#9D5CE3#9D5CE3

#9D5CE3 is a mid, vivid violet. Relative luminance 0.204; OKLCH L 61.1% C 0.199 H 303.2°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#9D5CE3
RGBrgb(157, 92, 227)
HSLhsl(269, 71%, 63%)
HSVhsv(269, 59%, 89%)
CMYKcmyk(30.8%, 59.5%, 0%, 11%)
CIE-LABlab(52.25, 52.17, -58.90)
CIE-LCHlch(52.25, 78.68, 311.53°)
OKLaboklab(61.07% 0.109 -0.1667)
OKLCHoklch(61.07% 0.199 303.2)
XYZxyz(31.5937, 20.3685, 74.9252)
Luminance0.2037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5CE3 #A2E35C
analogous
#5C5EE3 #9D5CE3 #E15CE3
triadic
#9D5CE3 #E39D5C #5CE39D
tetradic
#9D5CE3 #E35C5E #A2E35C #5CE3E1
square
#9D5CE3 #E35C5E #A2E35C #5CE3E1
split-complementary
#9D5CE3 #E3E15C #5EE35C
monochromatic
#601DA8 #7E28DA #9D5CE3 #BC90EC #DCC4F5

Accessibility & contrast

On white

4.14
#9D5CE3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#9D5CE3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5CE3
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5CE3#FFFFFF#000000##000000
##9D5CE31.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#137BE7
Deuteranopia (green-blind)
#397CE0
Tritanopia (blue-blind)
#907897
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9d5ce3;
/* rgb */ color: rgb(157, 92, 227);
/* oklch */ color: oklch(61.1% 0.199 303.2);
Tailwind
colors: {
  custom: {
    50: '#be8dec',
    500: '#9d5ce3',
    950: '#000000',
  },
}
SCSS
$custom: #9d5ce3;
$custom-light: #be8dec;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5ce3",
  "rgb": {
    "r": 157,
    "g": 92,
    "b": 227
  },
  "hsl": {
    "h": 268.889,
    "s": 70.681,
    "l": 62.549
  },
  "oklch": {
    "l": 0.61069,
    "c": 0.19916,
    "h": 303.2
  },
  "luminance": 0.20368
}

Semantic roles & 50–950 ramp

primary
#9D5CE3
secondary
#CEE6B5
accent
#D31376
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9D5CE3

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

Preview Lab → · Contrast checker → · Palette generator →

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