#5B278B#5B278B

#5B278B is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.0% C 0.158 H 303.8°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#5B278B
RGBrgb(91, 39, 139)
HSLhsl(271, 56%, 35%)
HSVhsv(271, 72%, 55%)
CMYKcmyk(34.5%, 71.9%, 0%, 45.5%)
CIE-LABlab(28.22, 43.05, -46.19)
CIE-LCHlch(28.22, 63.15, 312.98°)
OKLaboklab(40.03% 0.0879 -0.1314)
OKLCHoklch(40.03% 0.158 303.8)
XYZxyz(9.6990, 5.5393, 24.9793)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B278B #578B27
analogous
#29278B #5B278B #8B2789
triadic
#5B278B #8B5B27 #278B5B
tetradic
#5B278B #8B2927 #578B27 #27898B
square
#5B278B #8B2927 #578B27 #27898B
split-complementary
#5B278B #898B27 #278B29
monochromatic
#1C0C2B #3C1A5B #5B278B #7A34BB #995BD1

Accessibility & contrast

On white

9.96
#5B278B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5B278B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B278B
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B278B#FFFFFF#000000##FFFFFF
##5B278B1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#004289
Tritanopia (blue-blind)
#523E56
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5b278b;
/* rgb */ color: rgb(91, 39, 139);
/* oklch */ color: oklch(40.0% 0.158 303.8);
Tailwind
colors: {
  custom: {
    50: '#8e66ae',
    500: '#5b278b',
    950: '#000000',
  },
}
SCSS
$custom: #5b278b;
$custom-light: #8e66ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5b278b",
  "rgb": {
    "r": 91,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 271.2,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.40027,
    "c": 0.15806,
    "h": 303.8
  },
  "luminance": 0.05539
}

Semantic roles & 50–950 ramp

primary
#5B278B
secondary
#85B658
accent
#DF4891
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5B278B

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

Preview Lab → · Contrast checker → · Palette generator →

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