#5B289A#5B289A

#5B289A is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.4% C 0.174 H 298.9°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#5B289A
RGBrgb(91, 40, 154)
HSLhsl(267, 59%, 38%)
HSVhsv(267, 74%, 60%)
CMYKcmyk(40.9%, 74%, 0%, 39.6%)
CIE-LABlab(29.60, 46.40, -53.18)
CIE-LCHlch(29.60, 70.58, 311.11°)
OKLaboklab(41.39% 0.0839 -0.1519)
OKLCHoklch(41.39% 0.174 298.9)
XYZxyz(10.9044, 6.0747, 31.1636)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B289A #679A28
analogous
#282E9A #5B289A #94289A
triadic
#5B289A #9A5B28 #289A5B
tetradic
#5B289A #9A282E #679A28 #289A94
square
#5B289A #9A282E #679A28 #289A94
split-complementary
#5B289A #9A9428 #2E9A28
monochromatic
#220F39 #3E1B69 #5B289A #7835CA #9865D7

Accessibility & contrast

On white

9.48
#5B289A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5B289A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B289A
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B289A#FFFFFF#000000##FFFFFF
##5B289A1.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#004598
Tritanopia (blue-blind)
#4C455F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b289a;
/* rgb */ color: rgb(91, 40, 154);
/* oklch */ color: oklch(41.4% 0.174 298.9);
Tailwind
colors: {
  custom: {
    50: '#8f67b9',
    500: '#5b289a',
    950: '#000000',
  },
}
SCSS
$custom: #5b289a;
$custom-light: #8f67b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b289a",
  "rgb": {
    "r": 91,
    "g": 40,
    "b": 154
  },
  "hsl": {
    "h": 266.842,
    "s": 58.763,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41386,
    "c": 0.17358,
    "h": 298.9
  },
  "luminance": 0.06075
}

Semantic roles & 50–950 ramp

primary
#5B289A
secondary
#94BD61
accent
#E2469C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B289A

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

Preview Lab → · Contrast checker → · Palette generator →

#5B289A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva