#5B288F#5B288F

#5B288F is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.161 H 302.3°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#5B288F
RGBrgb(91, 40, 143)
HSLhsl(270, 56%, 36%)
HSVhsv(270, 72%, 56%)
CMYKcmyk(36.4%, 72%, 0%, 43.9%)
CIE-LABlab(28.71, 43.57, -47.88)
CIE-LCHlch(28.71, 64.74, 312.30°)
OKLaboklab(40.47% 0.0861 -0.1363)
OKLCHoklch(40.47% 0.161 302.3)
XYZxyz(10.0299, 5.7249, 26.5579)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B288F #5C8F28
analogous
#28288F #5B288F #8E288F
triadic
#5B288F #8F5B28 #288F5B
tetradic
#5B288F #8F2828 #5C8F28 #288F8E
square
#5B288F #8F2828 #5C8F28 #288F8E
split-complementary
#5B288F #8F8E28 #288F28
monochromatic
#1E0D2F #3D1B5F #5B288F #7935BF #985FD2

Accessibility & contrast

On white

9.79
#5B288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5B288F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B288F
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B288F#FFFFFF#000000##FFFFFF
##5B288F1.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#504158
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b288f;
/* rgb */ color: rgb(91, 40, 143);
/* oklch */ color: oklch(40.5% 0.161 302.3);
Tailwind
colors: {
  custom: {
    50: '#8e66b1',
    500: '#5b288f',
    950: '#000000',
  },
}
SCSS
$custom: #5b288f;
$custom-light: #8e66b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b288f",
  "rgb": {
    "r": 91,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 269.709,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40473,
    "c": 0.16126,
    "h": 302.3
  },
  "luminance": 0.05725
}

Semantic roles & 50–950 ramp

primary
#5B288F
secondary
#8AB85B
accent
#E04895
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B288F

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

Preview Lab → · Contrast checker → · Palette generator →

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