#9E5FE7#9E5FE7

#9E5FE7 is a mid, vivid violet. Relative luminance 0.212; OKLCH L 61.9% C 0.200 H 302.3°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#9E5FE7
RGBrgb(158, 95, 231)
HSLhsl(268, 74%, 64%)
HSVhsv(268, 59%, 91%)
CMYKcmyk(31.6%, 58.9%, 0%, 9.4%)
CIE-LABlab(53.19, 51.80, -59.63)
CIE-LCHlch(53.19, 78.99, 310.98°)
OKLaboklab(61.86% 0.1066 -0.1688)
OKLCHoklch(61.86% 0.2 302.3)
XYZxyz(32.6132, 21.2230, 77.9641)
Luminance0.2122 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E5FE7 #A8E75F
analogous
#5F64E7 #9E5FE7 #E25FE7
triadic
#9E5FE7 #E79E5F #5FE79E
tetradic
#9E5FE7 #E75F64 #A8E75F #5FE7E2
square
#9E5FE7 #E75F64 #A8E75F #5FE7E2
split-complementary
#9E5FE7 #E7E25F #64E75F
monochromatic
#601BB1 #7E2ADF #9E5FE7 #BE94EF #DFC9F7

Accessibility & contrast

On white

4.00
#9E5FE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#9E5FE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E5FE7
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E5FE7#FFFFFF#000000##000000
##9E5FE71.004.005.245.24
#FFFFFF4.001.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#177EEB
Deuteranopia (green-blind)
#3A7FE4
Tritanopia (blue-blind)
#907B9A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #9e5fe7;
/* rgb */ color: rgb(158, 95, 231);
/* oklch */ color: oklch(61.9% 0.200 302.3);
Tailwind
colors: {
  custom: {
    50: '#bf8fef',
    500: '#9e5fe7',
    950: '#000000',
  },
}
SCSS
$custom: #9e5fe7;
$custom-light: #bf8fef;
$custom-dark: #000000;
JSON
{
  "hex": "#9e5fe7",
  "rgb": {
    "r": 158,
    "g": 95,
    "b": 231
  },
  "hsl": {
    "h": 267.794,
    "s": 73.913,
    "l": 63.922
  },
  "oklch": {
    "l": 0.61859,
    "c": 0.19967,
    "h": 302.3
  },
  "luminance": 0.21223
}

Semantic roles & 50–950 ramp

primary
#9E5FE7
secondary
#D3E9B9
accent
#D60F7A
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130D17
muted
#827D85

Preview Lab

Preview with #9E5FE7

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

Preview Lab → · Contrast checker → · Palette generator →

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