#5B1983#5B1983

#5B1983 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.166 H 308.5°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#5B1983
RGBrgb(91, 25, 131)
HSLhsl(277, 68%, 31%)
HSVhsv(277, 81%, 51%)
CMYKcmyk(30.5%, 80.9%, 0%, 48.6%)
CIE-LABlab(25.44, 47.23, -45.71)
CIE-LCHlch(25.44, 65.73, 315.93°)
OKLaboklab(37.86% 0.1033 -0.1299)
OKLCHoklch(37.86% 0.166 308.5)
XYZxyz(8.7579, 4.5583, 21.8868)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1983 #418319
analogous
#261983 #5B1983 #831976
triadic
#5B1983 #835B19 #19835B
tetradic
#5B1983 #832619 #418319 #197683
square
#5B1983 #832619 #418319 #197683
split-complementary
#5B1983 #768319 #198326
monochromatic
#14051C #370F50 #5B1983 #7F23B6 #9E3DDA

Accessibility & contrast

On white

10.99
#5B1983 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5B1983 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1983
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1983#FFFFFF#000000##FFFFFF
##5B19831.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.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: #5b1983;
/* rgb */ color: rgb(91, 25, 131);
/* oklch */ color: oklch(37.9% 0.166 308.5);
Tailwind
colors: {
  custom: {
    50: '#8e5ea8',
    500: '#5b1983',
    950: '#000000',
  },
}
SCSS
$custom: #5b1983;
$custom-light: #8e5ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1983",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 131
  },
  "hsl": {
    "h": 277.358,
    "s": 67.949,
    "l": 30.588
  },
  "oklch": {
    "l": 0.37862,
    "c": 0.16595,
    "h": 308.5
  },
  "luminance": 0.04558
}

Semantic roles & 50–950 ramp

primary
#5B1983
secondary
#6DB741
accent
#EB3D7F
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1983

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

Preview Lab → · Contrast checker → · Palette generator →

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