#5B1E8B#5B1E8B

#5B1E8B is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.169 H 305.0°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#5B1E8B
RGBrgb(91, 30, 139)
HSLhsl(274, 64%, 33%)
HSVhsv(274, 78%, 55%)
CMYKcmyk(34.5%, 78.4%, 0%, 45.5%)
CIE-LABlab(26.78, 47.13, -48.53)
CIE-LCHlch(26.78, 67.65, 314.16°)
OKLaboklab(39.01% 0.0969 -0.1382)
OKLCHoklch(39.01% 0.169 305)
XYZxyz(9.4378, 5.0168, 24.8922)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1E8B #4E8B1E
analogous
#241E8B #5B1E8B #8B1E84
triadic
#5B1E8B #8B5B1E #1E8B5B
tetradic
#5B1E8B #8B241E #4E8B1E #1E848B
square
#5B1E8B #8B241E #4E8B1E #1E848B
split-complementary
#5B1E8B #848B1E #1E8B24
monochromatic
#190826 #3A1359 #5B1E8B #7C29BD #9A4BD8

Accessibility & contrast

On white

10.48
#5B1E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5B1E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1E8B
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1E8B#FFFFFF#000000##FFFFFF
##5B1E8B1.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#523A54
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5b1e8b;
/* rgb */ color: rgb(91, 30, 139);
/* oklch */ color: oklch(39.0% 0.169 305.0);
Tailwind
colors: {
  custom: {
    50: '#8e61ae',
    500: '#5b1e8b',
    950: '#000000',
  },
}
SCSS
$custom: #5b1e8b;
$custom-light: #8e61ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1e8b",
  "rgb": {
    "r": 91,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 273.578,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39012,
    "c": 0.16877,
    "h": 305
  },
  "luminance": 0.05017
}

Semantic roles & 50–950 ramp

primary
#5B1E8B
secondary
#7CBB4A
accent
#E7408A
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5B1E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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