#5B288C#5B288C

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

Color values

HEX#5B288C
RGBrgb(91, 40, 140)
HSLhsl(271, 56%, 35%)
HSVhsv(271, 71%, 55%)
CMYKcmyk(35%, 71.4%, 0%, 45.1%)
CIE-LABlab(28.47, 42.81, -46.40)
CIE-LCHlch(28.47, 63.14, 312.69°)
OKLaboklab(40.23% 0.0866 -0.132)
OKLCHoklch(40.23% 0.158 303.3)
XYZxyz(9.8057, 5.6352, 25.3770)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B288C #598C28
analogous
#29288C #5B288C #8C288B
triadic
#5B288C #8C5B28 #288C5B
tetradic
#5B288C #8C2928 #598C28 #288B8C
square
#5B288C #8C2928 #598C28 #288B8C
split-complementary
#5B288C #8B8C28 #288C29
monochromatic
#1D0D2D #3C1A5C #5B288C #7A36BC #985ED1

Accessibility & contrast

On white

9.87
#5B288C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B288C
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B288C#FFFFFF#000000##FFFFFF
##5B288C1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428F
Deuteranopia (green-blind)
#00438A
Tritanopia (blue-blind)
#513F57
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5b288c;
/* rgb */ color: rgb(91, 40, 140);
/* oklch */ color: oklch(40.2% 0.158 303.3);
Tailwind
colors: {
  custom: {
    50: '#8e66ae',
    500: '#5b288c',
    950: '#000000',
  },
}
SCSS
$custom: #5b288c;
$custom-light: #8e66ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5b288c",
  "rgb": {
    "r": 91,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 270.6,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40233,
    "c": 0.15788,
    "h": 303.3
  },
  "luminance": 0.05635
}

Semantic roles & 50–950 ramp

primary
#5B288C
secondary
#87B65A
accent
#DF4992
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5B288C

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

Preview Lab → · Contrast checker → · Palette generator →

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