#9A59EB#9A59EB

#9A59EB is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 60.9% C 0.212 H 300.7°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#9A59EB
RGBrgb(154, 89, 235)
HSLhsl(267, 78%, 64%)
HSVhsv(267, 62%, 92%)
CMYKcmyk(34.5%, 62.1%, 0%, 7.8%)
CIE-LABlab(51.85, 54.98, -64.06)
CIE-LCHlch(51.85, 84.41, 310.64°)
OKLaboklab(60.87% 0.1082 -0.182)
OKLCHoklch(60.87% 0.212 300.7)
XYZxyz(31.8906, 20.0127, 80.7639)
Luminance0.2001 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9A59EB #AAEB59
analogous
#5961EB #9A59EB #E359EB
triadic
#9A59EB #EB9A59 #59EB9A
tetradic
#9A59EB #EB5961 #AAEB59 #59EBE3
square
#9A59EB #EB5961 #AAEB59 #59EBE3
split-complementary
#9A59EB #EBE359 #61EB59
monochromatic
#5C16B4 #7922E4 #9A59EB #BB90F2 #DCC6F8

Accessibility & contrast

On white

4.20
#9A59EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#9A59EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9A59EB
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9A59EB#FFFFFF#000000##000000
##9A59EB1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF0
Deuteranopia (green-blind)
#217BE8
Tritanopia (blue-blind)
#89799A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #9a59eb;
/* rgb */ color: rgb(154, 89, 235);
/* oklch */ color: oklch(60.9% 0.212 300.7);
Tailwind
colors: {
  custom: {
    50: '#bd8bf2',
    500: '#9a59eb',
    950: '#000000',
  },
}
SCSS
$custom: #9a59eb;
$custom-light: #bd8bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#9a59eb",
  "rgb": {
    "r": 154,
    "g": 89,
    "b": 235
  },
  "hsl": {
    "h": 266.712,
    "s": 78.495,
    "l": 63.529
  },
  "oklch": {
    "l": 0.60865,
    "c": 0.21171,
    "h": 300.7
  },
  "luminance": 0.20013
}

Semantic roles & 50–950 ramp

primary
#9A59EB
secondary
#D3EAB6
accent
#DB0B7E
background
#FCF8FE
surface
#F8F0FD
border
#D1CBD5
text
#130C17
muted
#827D85

Preview Lab

Preview with #9A59EB

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

Preview Lab → · Contrast checker → · Palette generator →

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