#5B1681#5B1681

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

Color values

HEX#5B1681
RGBrgb(91, 22, 129)
HSLhsl(279, 71%, 30%)
HSVhsv(279, 83%, 51%)
CMYKcmyk(29.5%, 82.9%, 0%, 49.4%)
CIE-LABlab(24.90, 47.85, -45.33)
CIE-LCHlch(24.90, 65.92, 316.55°)
OKLaboklab(37.43% 0.1063 -0.1287)
OKLCHoklch(37.43% 0.167 309.5)
XYZxyz(8.5629, 4.3831, 21.1596)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1681 #3C8116
analogous
#261681 #5B1681 #811671
triadic
#5B1681 #815B16 #16815B
tetradic
#5B1681 #812616 #3C8116 #167181
square
#5B1681 #812616 #3C8116 #167181
split-complementary
#5B1681 #718116 #168126
monochromatic
#12041A #360D4D #5B1681 #801FB5 #A135DD

Accessibility & contrast

On white

11.19
#5B1681 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5B1681 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1681
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1681#FFFFFF#000000##FFFFFF
##5B16811.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003884
Deuteranopia (green-blind)
#003C7F
Tritanopia (blue-blind)
#55324C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5b1681;
/* rgb */ color: rgb(91, 22, 129);
/* oklch */ color: oklch(37.4% 0.167 309.5);
Tailwind
colors: {
  custom: {
    50: '#8e5da6',
    500: '#5b1681',
    950: '#000000',
  },
}
SCSS
$custom: #5b1681;
$custom-light: #8e5da6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1681",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 129
  },
  "hsl": {
    "h": 278.692,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37434,
    "c": 0.16694,
    "h": 309.5
  },
  "luminance": 0.04383
}

Semantic roles & 50–950 ramp

primary
#5B1681
secondary
#68B63D
accent
#EE3A7A
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B1681

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

Preview Lab → · Contrast checker → · Palette generator →

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