#9E5CE7#9E5CE7

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

Color values

HEX#9E5CE7
RGBrgb(158, 92, 231)
HSLhsl(268, 74%, 63%)
HSVhsv(268, 60%, 91%)
CMYKcmyk(31.6%, 60.2%, 0%, 9.4%)
CIE-LABlab(52.61, 53.35, -60.56)
CIE-LCHlch(52.61, 80.71, 311.38°)
OKLaboklab(61.44% 0.1101 -0.1716)
OKLCHoklch(61.44% 0.204 302.7)
XYZxyz(32.3482, 20.6929, 77.8757)
Luminance0.2069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E5CE7 #A5E75C
analogous
#5C5FE7 #9E5CE7 #E35CE7
triadic
#9E5CE7 #E79E5C #5CE79E
tetradic
#9E5CE7 #E75C5F #A5E75C #5CE7E3
square
#9E5CE7 #E75C5F #A5E75C #5CE7E3
split-complementary
#9E5CE7 #E7E35C #5FE75C
monochromatic
#611AAF #7E27DF #9E5CE7 #BE91EF #DDC7F7

Accessibility & contrast

On white

4.09
#9E5CE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##9E5CE7#FFFFFF#000000##000000
##9E5CE71.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#037CEB
Deuteranopia (green-blind)
#357DE4
Tritanopia (blue-blind)
#907999
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #9e5ce7;
/* rgb */ color: rgb(158, 92, 231);
/* oklch */ color: oklch(61.4% 0.204 302.7);
Tailwind
colors: {
  custom: {
    50: '#bf8def',
    500: '#9e5ce7',
    950: '#000000',
  },
}
SCSS
$custom: #9e5ce7;
$custom-light: #bf8def;
$custom-dark: #000000;
JSON
{
  "hex": "#9e5ce7",
  "rgb": {
    "r": 158,
    "g": 92,
    "b": 231
  },
  "hsl": {
    "h": 268.489,
    "s": 74.332,
    "l": 63.333
  },
  "oklch": {
    "l": 0.61436,
    "c": 0.20388,
    "h": 302.7
  },
  "luminance": 0.20693
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9E5CE7

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

Preview Lab → · Contrast checker → · Palette generator →

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