#5B289B#5B289B

#5B289B is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.5% C 0.175 H 298.6°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#5B289B
RGBrgb(91, 40, 155)
HSLhsl(267, 59%, 38%)
HSVhsv(267, 74%, 61%)
CMYKcmyk(41.3%, 74.2%, 0%, 39.2%)
CIE-LABlab(29.68, 46.66, -53.66)
CIE-LCHlch(29.68, 71.11, 311.01°)
OKLaboklab(41.47% 0.0837 -0.1533)
OKLCHoklch(41.47% 0.175 298.6)
XYZxyz(10.9881, 6.1081, 31.6041)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B289B #689B28
analogous
#282E9B #5B289B #94289B
triadic
#5B289B #9B5B28 #289B5B
tetradic
#5B289B #9B282E #689B28 #289B94
square
#5B289B #9B282E #689B28 #289B94
split-complementary
#5B289B #9B9428 #2E9B28
monochromatic
#220F3A #3E1B6A #5B289B #7835CB #9866D7

Accessibility & contrast

On white

9.45
#5B289B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B289B
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B289B#FFFFFF#000000##FFFFFF
##5B289B1.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#004599
Tritanopia (blue-blind)
#4B455F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5b289b;
/* rgb */ color: rgb(91, 40, 155);
/* oklch */ color: oklch(41.5% 0.175 298.6);
Tailwind
colors: {
  custom: {
    50: '#8f67b9',
    500: '#5b289b',
    950: '#000000',
  },
}
SCSS
$custom: #5b289b;
$custom-light: #8f67b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b289b",
  "rgb": {
    "r": 91,
    "g": 40,
    "b": 155
  },
  "hsl": {
    "h": 266.609,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41471,
    "c": 0.1747,
    "h": 298.6
  },
  "luminance": 0.06108
}

Semantic roles & 50–950 ramp

primary
#5B289B
secondary
#95BD61
accent
#E2469D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B289B

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

Preview Lab → · Contrast checker → · Palette generator →

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