#5B1881#5B1881

#5B1881 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.165 H 309.4°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#5B1881
RGBrgb(91, 24, 129)
HSLhsl(278, 69%, 30%)
HSVhsv(278, 81%, 51%)
CMYKcmyk(29.5%, 81.4%, 0%, 49.4%)
CIE-LABlab(25.15, 47.14, -44.93)
CIE-LCHlch(25.15, 65.12, 316.38°)
OKLaboklab(37.61% 0.1046 -0.1276)
OKLCHoklch(37.61% 0.165 309.4)
XYZxyz(8.6027, 4.4626, 21.1728)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1881 #3E8118
analogous
#271881 #5B1881 #811872
triadic
#5B1881 #815B18 #18815B
tetradic
#5B1881 #812718 #3E8118 #187281
square
#5B1881 #812718 #3E8118 #187281
split-complementary
#5B1881 #728118 #188127
monochromatic
#12051A #370E4D #5B1881 #7F22B5 #A039DA

Accessibility & contrast

On white

11.10
#5B1881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5B1881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1881
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1881#FFFFFF#000000##FFFFFF
##5B18811.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003984
Deuteranopia (green-blind)
#003C7F
Tritanopia (blue-blind)
#55334D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5b1881;
/* rgb */ color: rgb(91, 24, 129);
/* oklch */ color: oklch(37.6% 0.165 309.4);
Tailwind
colors: {
  custom: {
    50: '#8e5ea6',
    500: '#5b1881',
    950: '#000000',
  },
}
SCSS
$custom: #5b1881;
$custom-light: #8e5ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1881",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 278.286,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.37606,
    "c": 0.16499,
    "h": 309.4
  },
  "luminance": 0.04462
}

Semantic roles & 50–950 ramp

primary
#5B1881
secondary
#6AB540
accent
#EB3C7C
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B1881

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

Preview Lab → · Contrast checker → · Palette generator →

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