#5B1083#5B1083

#5B1083 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.2% C 0.174 H 309.3°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#5B1083
RGBrgb(91, 16, 131)
HSLhsl(279, 78%, 29%)
HSVhsv(279, 88%, 51%)
CMYKcmyk(30.5%, 87.8%, 0%, 48.6%)
CIE-LABlab(24.43, 50.17, -47.36)
CIE-LCHlch(24.43, 68.99, 316.65°)
OKLaboklab(37.16% 0.11 -0.1346)
OKLCHoklch(37.16% 0.174 309.3)
XYZxyz(8.5956, 4.2336, 21.8327)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1083 #388310
analogous
#211083 #5B1083 #831072
triadic
#5B1083 #835B10 #10835B
tetradic
#5B1083 #832110 #388310 #107283
square
#5B1083 #832110 #388310 #107283
split-complementary
#5B1083 #728310 #108321
monochromatic
#13031B #35094C #5B1083 #8117BA #A329E5

Accessibility & contrast

On white

11.37
#5B1083 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5B1083 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1083
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1083#FFFFFF#000000##FFFFFF
##5B10831.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003786
Deuteranopia (green-blind)
#003B81
Tritanopia (blue-blind)
#55304C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5b1083;
/* rgb */ color: rgb(91, 16, 131);
/* oklch */ color: oklch(37.2% 0.174 309.3);
Tailwind
colors: {
  custom: {
    50: '#8e5ba8',
    500: '#5b1083',
    950: '#000000',
  },
}
SCSS
$custom: #5b1083;
$custom-light: #8e5ba8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1083",
  "rgb": {
    "r": 91,
    "g": 16,
    "b": 131
  },
  "hsl": {
    "h": 279.13,
    "s": 78.231,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3716,
    "c": 0.17389,
    "h": 309.3
  },
  "luminance": 0.04233
}

Semantic roles & 50–950 ramp

primary
#5B1083
secondary
#64B936
accent
#F53376
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0410
muted
#7E797F

Preview Lab

Preview with #5B1083

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

Preview Lab → · Contrast checker → · Palette generator →

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