#5B288B#5B288B

#5B288B is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.157 H 303.6°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#5B288B
RGBrgb(91, 40, 139)
HSLhsl(271, 55%, 35%)
HSVhsv(271, 71%, 55%)
CMYKcmyk(34.5%, 71.2%, 0%, 45.5%)
CIE-LABlab(28.40, 42.56, -45.91)
CIE-LCHlch(28.40, 62.60, 312.83°)
OKLaboklab(40.15% 0.0868 -0.1306)
OKLCHoklch(40.15% 0.157 303.6)
XYZxyz(9.7323, 5.6058, 24.9904)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B288B #588B28
analogous
#2A288B #5B288B #8B2889
triadic
#5B288B #8B5B28 #288B5B
tetradic
#5B288B #8B2A28 #588B28 #28898B
square
#5B288B #8B2A28 #588B28 #28898B
split-complementary
#5B288B #898B28 #288B2A
monochromatic
#1D0D2C #3C1A5B #5B288B #7A36BB #985DD0

Accessibility & contrast

On white

9.90
#5B288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5B288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B288B
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B288B#FFFFFF#000000##FFFFFF
##5B288B1.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#004389
Tritanopia (blue-blind)
#523F56
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5b288b;
/* rgb */ color: rgb(91, 40, 139);
/* oklch */ color: oklch(40.2% 0.157 303.6);
Tailwind
colors: {
  custom: {
    50: '#8e66ae',
    500: '#5b288b',
    950: '#000000',
  },
}
SCSS
$custom: #5b288b;
$custom-light: #8e66ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5b288b",
  "rgb": {
    "r": 91,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 270.909,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40153,
    "c": 0.15676,
    "h": 303.6
  },
  "luminance": 0.05606
}

Semantic roles & 50–950 ramp

primary
#5B288B
secondary
#86B659
accent
#DF4992
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5B288B

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

Preview Lab → · Contrast checker → · Palette generator →

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