#5B288D#5B288D

#5B288D is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.3% C 0.159 H 302.9°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#5B288D
RGBrgb(91, 40, 141)
HSLhsl(270, 56%, 35%)
HSVhsv(270, 72%, 55%)
CMYKcmyk(35.5%, 71.6%, 0%, 44.7%)
CIE-LABlab(28.55, 43.06, -46.90)
CIE-LCHlch(28.55, 63.67, 312.56°)
OKLaboklab(40.31% 0.0864 -0.1335)
OKLCHoklch(40.31% 0.159 302.9)
XYZxyz(9.8798, 5.6648, 25.7671)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B288D #5A8D28
analogous
#28288D #5B288D #8D288C
triadic
#5B288D #8D5B28 #288D5B
tetradic
#5B288D #8D2828 #5A8D28 #288C8D
square
#5B288D #8D2828 #5A8D28 #288C8D
split-complementary
#5B288D #8C8D28 #288D28
monochromatic
#1D0D2E #3C1A5D #5B288D #7A36BD #985ED1

Accessibility & contrast

On white

9.85
#5B288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5B288D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B288D
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B288D#FFFFFF#000000##FFFFFF
##5B288D1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#514057
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5b288d;
/* rgb */ color: rgb(91, 40, 141);
/* oklch */ color: oklch(40.3% 0.159 302.9);
Tailwind
colors: {
  custom: {
    50: '#8e66af',
    500: '#5b288d',
    950: '#000000',
  },
}
SCSS
$custom: #5b288d;
$custom-light: #8e66af;
$custom-dark: #000000;
JSON
{
  "hex": "#5b288d",
  "rgb": {
    "r": 91,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 270.297,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40312,
    "c": 0.15901,
    "h": 302.9
  },
  "luminance": 0.05665
}

Semantic roles & 50–950 ramp

primary
#5B288D
secondary
#88B75A
accent
#DF4993
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5B288D

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

Preview Lab → · Contrast checker → · Palette generator →

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