#5B1E93#5B1E93

#5B1E93 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.177 H 302.4°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#5B1E93
RGBrgb(91, 30, 147)
HSLhsl(271, 66%, 35%)
HSVhsv(271, 80%, 58%)
CMYKcmyk(38.1%, 79.6%, 0%, 42.4%)
CIE-LABlab(27.46, 49.06, -52.38)
CIE-LCHlch(27.46, 71.76, 313.12°)
OKLaboklab(39.7% 0.0948 -0.1495)
OKLCHoklch(39.7% 0.177 302.4)
XYZxyz(10.0439, 5.2592, 28.0841)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1E93 #56931E
analogous
#201E93 #5B1E93 #931E91
triadic
#5B1E93 #935B1E #1E935B
tetradic
#5B1E93 #93201E #56931E #1E9193
square
#5B1E93 #93201E #56931E #1E9193
split-complementary
#5B1E93 #91931E #1E9320
monochromatic
#1C092D #3C1460 #5B1E93 #7A28C6 #9950DB

Accessibility & contrast

On white

10.23
#5B1E93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5B1E93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1E93
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1E93#FFFFFF#000000##FFFFFF
##5B1E931.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004096
Deuteranopia (green-blind)
#004091
Tritanopia (blue-blind)
#4F3D58
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5b1e93;
/* rgb */ color: rgb(91, 30, 147);
/* oklch */ color: oklch(39.7% 0.177 302.4);
Tailwind
colors: {
  custom: {
    50: '#8f61b4',
    500: '#5b1e93',
    950: '#000000',
  },
}
SCSS
$custom: #5b1e93;
$custom-light: #8f61b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1e93",
  "rgb": {
    "r": 91,
    "g": 30,
    "b": 147
  },
  "hsl": {
    "h": 271.282,
    "s": 66.102,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39697,
    "c": 0.17701,
    "h": 302.4
  },
  "luminance": 0.05259
}

Semantic roles & 50–950 ramp

primary
#5B1E93
secondary
#84BE4F
accent
#E93F90
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5B1E93

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

Preview Lab → · Contrast checker → · Palette generator →

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