#5B1E8A#5B1E8A

#5B1E8A is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.168 H 305.4°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#5B1E8A
RGBrgb(91, 30, 138)
HSLhsl(274, 64%, 33%)
HSVhsv(274, 78%, 54%)
CMYKcmyk(34.1%, 78.3%, 0%, 45.9%)
CIE-LABlab(26.70, 46.89, -48.04)
CIE-LCHlch(26.70, 67.13, 314.30°)
OKLaboklab(38.93% 0.0971 -0.1368)
OKLCHoklch(38.93% 0.168 305.4)
XYZxyz(9.3651, 4.9877, 24.5092)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1E8A #4D8A1E
analogous
#251E8A #5B1E8A #8A1E83
triadic
#5B1E8A #8A5B1E #1E8A5B
tetradic
#5B1E8A #8A251E #4D8A1E #1E838A
square
#5B1E8A #8A251E #4D8A1E #1E838A
split-complementary
#5B1E8A #838A1E #1E8A25
monochromatic
#190825 #3A1358 #5B1E8A #7C29BC #9A4BD8

Accessibility & contrast

On white

10.51
#5B1E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1E8A
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1E8A#FFFFFF#000000##FFFFFF
##5B1E8A1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003F88
Tritanopia (blue-blind)
#523953
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5b1e8a;
/* rgb */ color: rgb(91, 30, 138);
/* oklch */ color: oklch(38.9% 0.168 305.4);
Tailwind
colors: {
  custom: {
    50: '#8e61ad',
    500: '#5b1e8a',
    950: '#000000',
  },
}
SCSS
$custom: #5b1e8a;
$custom-light: #8e61ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1e8a",
  "rgb": {
    "r": 91,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 273.889,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38928,
    "c": 0.16773,
    "h": 305.4
  },
  "luminance": 0.04988
}

Semantic roles & 50–950 ramp

primary
#5B1E8A
secondary
#7BBA4A
accent
#E74189
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5B1E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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