#5B1783#5B1783

#5B1783 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.168 H 308.7°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#5B1783
RGBrgb(91, 23, 131)
HSLhsl(278, 70%, 30%)
HSVhsv(278, 82%, 51%)
CMYKcmyk(30.5%, 82.4%, 0%, 48.6%)
CIE-LABlab(25.19, 47.95, -46.12)
CIE-LCHlch(25.19, 66.54, 316.12°)
OKLaboklab(37.69% 0.105 -0.1311)
OKLCHoklch(37.69% 0.168 308.7)
XYZxyz(8.7167, 4.4758, 21.8730)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1783 #3F8317
analogous
#251783 #5B1783 #831775
triadic
#5B1783 #835B17 #17835B
tetradic
#5B1783 #832517 #3F8317 #177583
square
#5B1783 #832517 #3F8317 #177583
split-complementary
#5B1783 #758317 #178325
monochromatic
#13051B #370E4F #5B1783 #7F20B7 #9F38DC

Accessibility & contrast

On white

11.08
#5B1783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1783
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1783#FFFFFF#000000##FFFFFF
##5B17831.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003986
Deuteranopia (green-blind)
#003C81
Tritanopia (blue-blind)
#55334E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5b1783;
/* rgb */ color: rgb(91, 23, 131);
/* oklch */ color: oklch(37.7% 0.168 308.7);
Tailwind
colors: {
  custom: {
    50: '#8e5ea8',
    500: '#5b1783',
    950: '#000000',
  },
}
SCSS
$custom: #5b1783;
$custom-light: #8e5ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1783",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 131
  },
  "hsl": {
    "h": 277.778,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.37686,
    "c": 0.16792,
    "h": 308.7
  },
  "luminance": 0.04476
}

Semantic roles & 50–950 ramp

primary
#5B1783
secondary
#6BB73F
accent
#ED3B7D
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1783

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

Preview Lab → · Contrast checker → · Palette generator →

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