#5B1682#5B1682

#5B1682 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.168 H 309.2°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#5B1682
RGBrgb(91, 22, 130)
HSLhsl(278, 71%, 30%)
HSVhsv(278, 83%, 51%)
CMYKcmyk(30%, 83.1%, 0%, 49%)
CIE-LABlab(24.98, 48.08, -45.82)
CIE-LCHlch(24.98, 66.42, 316.38°)
OKLaboklab(37.52% 0.106 -0.1302)
OKLCHoklch(37.52% 0.168 309.2)
XYZxyz(8.6297, 4.4098, 21.5113)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1682 #3D8216
analogous
#251682 #5B1682 #821673
triadic
#5B1682 #825B16 #16825B
tetradic
#5B1682 #822516 #3D8216 #167382
square
#5B1682 #822516 #3D8216 #167382
split-complementary
#5B1682 #738216 #168225
monochromatic
#12041A #360D4E #5B1682 #801FB6 #A035DD

Accessibility & contrast

On white

11.16
#5B1682 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1682
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1682#FFFFFF#000000##FFFFFF
##5B16821.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#003C80
Tritanopia (blue-blind)
#55324D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5b1682;
/* rgb */ color: rgb(91, 22, 130);
/* oklch */ color: oklch(37.5% 0.168 309.2);
Tailwind
colors: {
  custom: {
    50: '#8e5da7',
    500: '#5b1682',
    950: '#000000',
  },
}
SCSS
$custom: #5b1682;
$custom-light: #8e5da7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1682",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 130
  },
  "hsl": {
    "h": 278.333,
    "s": 71.053,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37518,
    "c": 0.1679,
    "h": 309.2
  },
  "luminance": 0.0441
}

Semantic roles & 50–950 ramp

primary
#5B1682
secondary
#69B73D
accent
#EE3A7B
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B1682

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

Preview Lab → · Contrast checker → · Palette generator →

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