#5B3271#5B3271

#5B3271 is a dark, moderate violet. Relative luminance 0.057; OKLCH L 39.8% C 0.111 H 312.5°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#5B3271
RGBrgb(91, 50, 113)
HSLhsl(279, 39%, 32%)
HSVhsv(279, 56%, 44%)
CMYKcmyk(19.5%, 55.8%, 0%, 55.7%)
CIE-LABlab(28.64, 30.62, -29.18)
CIE-LCHlch(28.64, 42.30, 316.38°)
OKLaboklab(39.76% 0.0746 -0.0816)
OKLCHoklch(39.76% 0.111 312.5)
XYZxyz(8.4351, 5.6978, 16.2750)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3271 #487132
analogous
#3C3271 #5B3271 #713268
triadic
#5B3271 #715B32 #32715B
tetradic
#5B3271 #713C32 #487132 #326871
square
#5B3271 #713C32 #487132 #326871
split-complementary
#5B3271 #687132 #32713C
monochromatic
#170C1C #391F47 #5B3271 #7D459B #9C63BA

Accessibility & contrast

On white

9.81
#5B3271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5B3271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3271
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3271#FFFFFF#000000##FFFFFF
##5B32711.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224173
Deuteranopia (green-blind)
#2F446F
Tritanopia (blue-blind)
#593C4C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b3271;
/* rgb */ color: rgb(91, 50, 113);
/* oklch */ color: oklch(39.8% 0.111 312.5);
Tailwind
colors: {
  custom: {
    50: '#8b6c9a',
    500: '#5b3271',
    950: '#000000',
  },
}
SCSS
$custom: #5b3271;
$custom-light: #8b6c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3271",
  "rgb": {
    "r": 91,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 279.048,
    "s": 38.65,
    "l": 31.961
  },
  "oklch": {
    "l": 0.39764,
    "c": 0.11057,
    "h": 312.5
  },
  "luminance": 0.05698
}

Semantic roles & 50–950 ramp

primary
#5B3271
secondary
#75A25D
accent
#CF5982
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C070E
muted
#7D7A7E

Preview Lab

Preview with #5B3271

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

Preview Lab → · Contrast checker → · Palette generator →

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