#5B1483#5B1483

#5B1483 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.171 H 309.0°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#5B1483
RGBrgb(91, 20, 131)
HSLhsl(278, 74%, 30%)
HSVhsv(278, 85%, 51%)
CMYKcmyk(30.5%, 84.7%, 0%, 48.6%)
CIE-LABlab(24.84, 48.97, -46.69)
CIE-LCHlch(24.84, 67.66, 316.36°)
OKLaboklab(37.44% 0.1073 -0.1327)
OKLCHoklch(37.44% 0.171 309)
XYZxyz(8.6604, 4.3633, 21.8543)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1483 #3C8314
analogous
#231483 #5B1483 #831474
triadic
#5B1483 #835B14 #14835B
tetradic
#5B1483 #832314 #3C8314 #147483
square
#5B1483 #832314 #3C8314 #147483
split-complementary
#5B1483 #748314 #148323
monochromatic
#12041B #360C4E #5B1483 #801CB8 #A132E0

Accessibility & contrast

On white

11.21
#5B1483 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5B1483 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1483
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1483#FFFFFF#000000##FFFFFF
##5B14831.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003886
Deuteranopia (green-blind)
#003C81
Tritanopia (blue-blind)
#55324D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5b1483;
/* rgb */ color: rgb(91, 20, 131);
/* oklch */ color: oklch(37.4% 0.171 309.0);
Tailwind
colors: {
  custom: {
    50: '#8e5ca8',
    500: '#5b1483',
    950: '#000000',
  },
}
SCSS
$custom: #5b1483;
$custom-light: #8e5ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1483",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 131
  },
  "hsl": {
    "h": 278.378,
    "s": 73.51,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37443,
    "c": 0.17066,
    "h": 309
  },
  "luminance": 0.04363
}

Semantic roles & 50–950 ramp

primary
#5B1483
secondary
#68B83B
accent
#F0387A
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1483

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

Preview Lab → · Contrast checker → · Palette generator →

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