#5B1883#5B1883

#5B1883 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.167 H 308.6°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#5B1883
RGBrgb(91, 24, 131)
HSLhsl(278, 69%, 30%)
HSVhsv(278, 82%, 51%)
CMYKcmyk(30.5%, 81.7%, 0%, 48.6%)
CIE-LABlab(25.31, 47.59, -45.92)
CIE-LCHlch(25.31, 66.14, 316.03°)
OKLaboklab(37.77% 0.1041 -0.1305)
OKLCHoklch(37.77% 0.167 308.6)
XYZxyz(8.7369, 4.5163, 21.8798)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1883 #408318
analogous
#251883 #5B1883 #831875
triadic
#5B1883 #835B18 #18835B
tetradic
#5B1883 #832518 #408318 #187583
square
#5B1883 #832518 #408318 #187583
split-complementary
#5B1883 #758318 #188325
monochromatic
#13051C #370F4F #5B1883 #7F21B7 #9F3ADB

Accessibility & contrast

On white

11.03
#5B1883 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5B1883 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1883
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1883#FFFFFF#000000##FFFFFF
##5B18831.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A86
Deuteranopia (green-blind)
#003D81
Tritanopia (blue-blind)
#55344E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5b1883;
/* rgb */ color: rgb(91, 24, 131);
/* oklch */ color: oklch(37.8% 0.167 308.6);
Tailwind
colors: {
  custom: {
    50: '#8e5ea8',
    500: '#5b1883',
    950: '#000000',
  },
}
SCSS
$custom: #5b1883;
$custom-light: #8e5ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1883",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 131
  },
  "hsl": {
    "h": 277.57,
    "s": 69.032,
    "l": 30.392
  },
  "oklch": {
    "l": 0.37772,
    "c": 0.16695,
    "h": 308.6
  },
  "luminance": 0.04516
}

Semantic roles & 50–950 ramp

primary
#5B1883
secondary
#6CB740
accent
#EC3C7E
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1883

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

Preview Lab → · Contrast checker → · Palette generator →

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