#5B1683#5B1683

#5B1683 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.6% C 0.169 H 308.8°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#5B1683
RGBrgb(91, 22, 131)
HSLhsl(278, 71%, 30%)
HSVhsv(278, 83%, 51%)
CMYKcmyk(30.5%, 83.2%, 0%, 48.6%)
CIE-LABlab(25.07, 48.30, -46.32)
CIE-LCHlch(25.07, 66.92, 316.20°)
OKLaboklab(37.6% 0.1058 -0.1316)
OKLCHoklch(37.6% 0.169 308.8)
XYZxyz(8.6972, 4.4368, 21.8666)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1683 #3E8316
analogous
#251683 #5B1683 #831674
triadic
#5B1683 #835B16 #16835B
tetradic
#5B1683 #832516 #3E8316 #167483
square
#5B1683 #832516 #3E8316 #167483
split-complementary
#5B1683 #748316 #168325
monochromatic
#12041A #370D4F #5B1683 #7F1FB7 #A036DD

Accessibility & contrast

On white

11.13
#5B1683 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1683
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1683#FFFFFF#000000##FFFFFF
##5B16831.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003986
Deuteranopia (green-blind)
#003C81
Tritanopia (blue-blind)
#55334D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5b1683;
/* rgb */ color: rgb(91, 22, 131);
/* oklch */ color: oklch(37.6% 0.169 308.8);
Tailwind
colors: {
  custom: {
    50: '#8e5da8',
    500: '#5b1683',
    950: '#000000',
  },
}
SCSS
$custom: #5b1683;
$custom-light: #8e5da8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1683",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 131
  },
  "hsl": {
    "h": 277.982,
    "s": 71.242,
    "l": 30
  },
  "oklch": {
    "l": 0.37602,
    "c": 0.16886,
    "h": 308.8
  },
  "luminance": 0.04437
}

Semantic roles & 50–950 ramp

primary
#5B1683
secondary
#6AB73D
accent
#EE3A7C
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1683

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

Preview Lab → · Contrast checker → · Palette generator →

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