#5B1982#5B1982

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

Color values

HEX#5B1982
RGBrgb(91, 25, 130)
HSLhsl(278, 68%, 30%)
HSVhsv(278, 81%, 51%)
CMYKcmyk(30%, 80.8%, 0%, 49%)
CIE-LABlab(25.36, 47.00, -45.22)
CIE-LCHlch(25.36, 65.22, 316.11°)
OKLaboklab(37.78% 0.1035 -0.1284)
OKLCHoklch(37.78% 0.165 308.9)
XYZxyz(8.6905, 4.5313, 21.5316)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1982 #408219
analogous
#261982 #5B1982 #821974
triadic
#5B1982 #825B19 #19825B
tetradic
#5B1982 #822619 #408219 #197482
square
#5B1982 #822619 #408219 #197482
split-complementary
#5B1982 #748219 #198226
monochromatic
#13051B #370F4F #5B1982 #7F23B5 #9F3CD9

Accessibility & contrast

On white

11.02
#5B1982 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5B1982 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1982
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1982#FFFFFF#000000##FFFFFF
##5B19821.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b1982;
/* rgb */ color: rgb(91, 25, 130);
/* oklch */ color: oklch(37.8% 0.165 308.9);
Tailwind
colors: {
  custom: {
    50: '#8e5ea7',
    500: '#5b1982',
    950: '#000000',
  },
}
SCSS
$custom: #5b1982;
$custom-light: #8e5ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1982",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 130
  },
  "hsl": {
    "h": 277.714,
    "s": 67.742,
    "l": 30.392
  },
  "oklch": {
    "l": 0.37779,
    "c": 0.16496,
    "h": 308.9
  },
  "luminance": 0.04531
}

Semantic roles & 50–950 ramp

primary
#5B1982
secondary
#6CB641
accent
#EB3D7E
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B1982

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

Preview Lab → · Contrast checker → · Palette generator →

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