#9E56EB#9E56EB

#9E56EB is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 60.9% C 0.216 H 302.6°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#9E56EB
RGBrgb(158, 86, 235)
HSLhsl(269, 79%, 63%)
HSVhsv(269, 63%, 92%)
CMYKcmyk(32.8%, 63.4%, 0%, 7.8%)
CIE-LABlab(51.75, 57.33, -64.20)
CIE-LCHlch(51.75, 86.07, 311.76°)
OKLaboklab(60.89% 0.1168 -0.1822)
OKLCHoklch(60.89% 0.216 302.6)
XYZxyz(32.4202, 19.9228, 80.7186)
Luminance0.1992 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9E56EB #A3EB56
analogous
#5658EB #9E56EB #E856EB
triadic
#9E56EB #EB9E56 #56EB9E
tetradic
#9E56EB #EB5658 #A3EB56 #56EBE8
square
#9E56EB #EB5658 #A3EB56 #56EBE8
split-complementary
#9E56EB #EBE856 #58EB56
monochromatic
#6115B2 #7F1FE5 #9E56EB #BD8DF1 #DDC3F8

Accessibility & contrast

On white

4.21
#9E56EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#9E56EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9E56EB
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9E56EB#FFFFFF#000000##000000
##9E56EB1.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF0
Deuteranopia (green-blind)
#227BE8
Tritanopia (blue-blind)
#8F7699
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #9e56eb;
/* rgb */ color: rgb(158, 86, 235);
/* oklch */ color: oklch(60.9% 0.216 302.6);
Tailwind
colors: {
  custom: {
    50: '#c08af2',
    500: '#9e56eb',
    950: '#000000',
  },
}
SCSS
$custom: #9e56eb;
$custom-light: #c08af2;
$custom-dark: #000000;
JSON
{
  "hex": "#9e56eb",
  "rgb": {
    "r": 158,
    "g": 86,
    "b": 235
  },
  "hsl": {
    "h": 268.993,
    "s": 78.836,
    "l": 62.941
  },
  "oklch": {
    "l": 0.60893,
    "c": 0.21644,
    "h": 302.6
  },
  "luminance": 0.19923
}

Semantic roles & 50–950 ramp

primary
#9E56EB
secondary
#CFE9B4
accent
#DB0A76
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9E56EB

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

Preview Lab → · Contrast checker → · Palette generator →

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