#5B1882#5B1882

#5B1882 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.166 H 309.0°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#5B1882
RGBrgb(91, 24, 130)
HSLhsl(278, 69%, 30%)
HSVhsv(278, 82%, 51%)
CMYKcmyk(30%, 81.5%, 0%, 49%)
CIE-LABlab(25.23, 47.37, -45.43)
CIE-LCHlch(25.23, 65.63, 316.20°)
OKLaboklab(37.69% 0.1044 -0.129)
OKLCHoklch(37.69% 0.166 309)
XYZxyz(8.6695, 4.4893, 21.5246)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1882 #3F8218
analogous
#261882 #5B1882 #821874
triadic
#5B1882 #825B18 #18825B
tetradic
#5B1882 #822618 #3F8218 #187482
square
#5B1882 #822618 #3F8218 #187482
split-complementary
#5B1882 #748218 #188226
monochromatic
#13051B #370E4E #5B1882 #7F22B6 #9F3ADB

Accessibility & contrast

On white

11.07
#5B1882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5B1882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1882
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1882#FFFFFF#000000##FFFFFF
##5B18821.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b1882;
/* rgb */ color: rgb(91, 24, 130);
/* oklch */ color: oklch(37.7% 0.166 309.0);
Tailwind
colors: {
  custom: {
    50: '#8e5ea7',
    500: '#5b1882',
    950: '#000000',
  },
}
SCSS
$custom: #5b1882;
$custom-light: #8e5ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1882",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 130
  },
  "hsl": {
    "h": 277.925,
    "s": 68.831,
    "l": 30.196
  },
  "oklch": {
    "l": 0.37689,
    "c": 0.16596,
    "h": 309
  },
  "luminance": 0.04489
}

Semantic roles & 50–950 ramp

primary
#5B1882
secondary
#6BB640
accent
#EC3C7D
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B1882

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

Preview Lab → · Contrast checker → · Palette generator →

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