#9E59EB#9E59EB

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

Color values

HEX#9E59EB
RGBrgb(158, 89, 235)
HSLhsl(268, 78%, 64%)
HSVhsv(268, 62%, 92%)
CMYKcmyk(32.8%, 62.1%, 0%, 7.8%)
CIE-LABlab(52.30, 55.83, -63.31)
CIE-LCHlch(52.30, 84.41, 311.41°)
OKLaboklab(61.29% 0.1134 -0.1796)
OKLCHoklch(61.29% 0.212 302.3)
XYZxyz(32.6648, 20.4120, 80.8002)
Luminance0.2041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E59EB #A6EB59
analogous
#595DEB #9E59EB #E759EB
triadic
#9E59EB #EB9E59 #59EB9E
tetradic
#9E59EB #EB595D #A6EB59 #59EBE7
square
#9E59EB #EB595D #A6EB59 #59EBE7
split-complementary
#9E59EB #EBE759 #5DEB59
monochromatic
#6016B4 #7E22E4 #9E59EB #BE90F2 #DEC6F8

Accessibility & contrast

On white

4.13
#9E59EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#9E59EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E59EB
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E59EB#FFFFFF#000000##000000
##9E59EB1.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF0
Deuteranopia (green-blind)
#297CE8
Tritanopia (blue-blind)
#8F789A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #9e59eb;
/* rgb */ color: rgb(158, 89, 235);
/* oklch */ color: oklch(61.3% 0.212 302.3);
Tailwind
colors: {
  custom: {
    50: '#bf8bf2',
    500: '#9e59eb',
    950: '#000000',
  },
}
SCSS
$custom: #9e59eb;
$custom-light: #bf8bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#9e59eb",
  "rgb": {
    "r": 158,
    "g": 89,
    "b": 235
  },
  "hsl": {
    "h": 268.356,
    "s": 78.495,
    "l": 63.529
  },
  "oklch": {
    "l": 0.6129,
    "c": 0.21244,
    "h": 302.3
  },
  "luminance": 0.20412
}

Semantic roles & 50–950 ramp

primary
#9E59EB
secondary
#D1EAB6
accent
#DB0B78
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9E59EB

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

Preview Lab → · Contrast checker → · Palette generator →

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