#9D5CE7#9D5CE7

#9D5CE7 is a mid, highly saturated violet. Relative luminance 0.206; OKLCH L 61.3% C 0.204 H 302.3°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#9D5CE7
RGBrgb(157, 92, 231)
HSLhsl(268, 74%, 63%)
HSVhsv(268, 60%, 91%)
CMYKcmyk(32%, 60.2%, 0%, 9.4%)
CIE-LABlab(52.50, 53.13, -60.75)
CIE-LCHlch(52.50, 80.70, 311.17°)
OKLaboklab(61.33% 0.1088 -0.1722)
OKLCHoklch(61.33% 0.204 302.3)
XYZxyz(32.1522, 20.5919, 77.8666)
Luminance0.2059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D5CE7 #A6E75C
analogous
#5C60E7 #9D5CE7 #E35CE7
triadic
#9D5CE7 #E79D5C #5CE79D
tetradic
#9D5CE7 #E75C60 #A6E75C #5CE7E3
square
#9D5CE7 #E75C60 #A6E75C #5CE7E3
split-complementary
#9D5CE7 #E7E35C #60E75C
monochromatic
#5F1AAF #7D27DF #9D5CE7 #BD91EF #DDC7F7

Accessibility & contrast

On white

4.10
#9D5CE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#9D5CE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9D5CE7
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D5CE7#FFFFFF#000000##000000
##9D5CE71.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#017CEB
Deuteranopia (green-blind)
#347DE4
Tritanopia (blue-blind)
#8E7999
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9d5ce7;
/* rgb */ color: rgb(157, 92, 231);
/* oklch */ color: oklch(61.3% 0.204 302.3);
Tailwind
colors: {
  custom: {
    50: '#be8def',
    500: '#9d5ce7',
    950: '#000000',
  },
}
SCSS
$custom: #9d5ce7;
$custom-light: #be8def;
$custom-dark: #000000;
JSON
{
  "hex": "#9d5ce7",
  "rgb": {
    "r": 157,
    "g": 92,
    "b": 231
  },
  "hsl": {
    "h": 268.058,
    "s": 74.332,
    "l": 63.333
  },
  "oklch": {
    "l": 0.61329,
    "c": 0.20368,
    "h": 302.3
  },
  "luminance": 0.20592
}

Semantic roles & 50–950 ramp

primary
#9D5CE7
secondary
#D1E8B7
accent
#D60F79
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9D5CE7

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

Preview Lab → · Contrast checker → · Palette generator →

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