#9D5CE2#9D5CE2

#9D5CE2 is a mid, vivid violet. Relative luminance 0.203; OKLCH L 61.0% C 0.198 H 303.4°. Best body text is #000000 at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#9D5CE2
RGBrgb(157, 92, 226)
HSLhsl(269, 70%, 62%)
HSVhsv(269, 59%, 89%)
CMYKcmyk(30.5%, 59.3%, 0%, 11.4%)
CIE-LABlab(52.19, 51.93, -58.43)
CIE-LCHlch(52.19, 78.17, 311.63°)
OKLaboklab(61% 0.109 -0.1653)
OKLCHoklch(61% 0.198 303.4)
XYZxyz(31.4561, 20.3134, 74.2005)
Luminance0.2031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5CE2 #A1E25C
analogous
#5C5EE2 #9D5CE2 #E05CE2
triadic
#9D5CE2 #E29D5C #5CE29D
tetradic
#9D5CE2 #E25C5E #A1E25C #5CE2E0
square
#9D5CE2 #E25C5E #A1E25C #5CE2E0
split-complementary
#9D5CE2 #E2E05C #5EE25C
monochromatic
#601EA6 #7E28D9 #9D5CE2 #BC90EB #DBC4F4

Accessibility & contrast

On white

4.15
#9D5CE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.06
#9D5CE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5CE2
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5CE2#FFFFFF#000000##000000
##9D5CE21.004.155.065.06
#FFFFFF4.151.0021.0021.00
#0000005.0621.001.001.00
##0000005.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#167BE6
Deuteranopia (green-blind)
#3A7CDF
Tritanopia (blue-blind)
#907796
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9d5ce2;
/* rgb */ color: rgb(157, 92, 226);
/* oklch */ color: oklch(61.0% 0.198 303.4);
Tailwind
colors: {
  custom: {
    50: '#be8dec',
    500: '#9d5ce2',
    950: '#000000',
  },
}
SCSS
$custom: #9d5ce2;
$custom-light: #be8dec;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5ce2",
  "rgb": {
    "r": 157,
    "g": 92,
    "b": 226
  },
  "hsl": {
    "h": 269.104,
    "s": 69.792,
    "l": 62.353
  },
  "oklch": {
    "l": 0.61004,
    "c": 0.19803,
    "h": 303.4
  },
  "luminance": 0.20313
}

Semantic roles & 50–950 ramp

primary
#9D5CE2
secondary
#CEE5B4
accent
#D21476
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C16
muted
#827D84

Preview Lab

Preview with #9D5CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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