#5B1E95#5B1E95

#5B1E95 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.179 H 301.7°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#5B1E95
RGBrgb(91, 30, 149)
HSLhsl(271, 66%, 35%)
HSVhsv(271, 80%, 58%)
CMYKcmyk(38.9%, 79.9%, 0%, 41.6%)
CIE-LABlab(27.63, 49.54, -53.33)
CIE-LCHlch(27.63, 72.79, 312.89°)
OKLaboklab(39.87% 0.0942 -0.1523)
OKLCHoklch(39.87% 0.179 301.7)
XYZxyz(10.2022, 5.3226, 28.9178)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1E95 #58951E
analogous
#1F1E95 #5B1E95 #951E94
triadic
#5B1E95 #955B1E #1E955B
tetradic
#5B1E95 #951F1E #58951E #1E9495
square
#5B1E95 #951F1E #58951E #1E9495
split-complementary
#5B1E95 #94951E #1E951F
monochromatic
#1D092F #3C1462 #5B1E95 #7A28C8 #9851DC

Accessibility & contrast

On white

10.17
#5B1E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5B1E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1E95
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1E95#FFFFFF#000000##FFFFFF
##5B1E951.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004098
Deuteranopia (green-blind)
#004193
Tritanopia (blue-blind)
#4E3E59
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5b1e95;
/* rgb */ color: rgb(91, 30, 149);
/* oklch */ color: oklch(39.9% 0.179 301.7);
Tailwind
colors: {
  custom: {
    50: '#8f62b5',
    500: '#5b1e95',
    950: '#000000',
  },
}
SCSS
$custom: #5b1e95;
$custom-light: #8f62b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1e95",
  "rgb": {
    "r": 91,
    "g": 30,
    "b": 149
  },
  "hsl": {
    "h": 270.756,
    "s": 66.48,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39872,
    "c": 0.17908,
    "h": 301.7
  },
  "luminance": 0.05323
}

Semantic roles & 50–950 ramp

primary
#5B1E95
secondary
#86BF50
accent
#E93E92
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5B1E95

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

Preview Lab → · Contrast checker → · Palette generator →

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