#5B1685#5B1685

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

Color values

HEX#5B1685
RGBrgb(91, 22, 133)
HSLhsl(277, 72%, 30%)
HSVhsv(277, 83%, 52%)
CMYKcmyk(31.6%, 83.5%, 0%, 47.8%)
CIE-LABlab(25.23, 48.75, -47.30)
CIE-LCHlch(25.23, 67.93, 315.87°)
OKLaboklab(37.77% 0.1052 -0.1345)
OKLCHoklch(37.77% 0.171 308)
XYZxyz(8.8340, 4.4916, 22.5873)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1685 #408516
analogous
#231685 #5B1685 #851677
triadic
#5B1685 #855B16 #16855B
tetradic
#5B1685 #852316 #408516 #167785
square
#5B1685 #852316 #408516 #167785
split-complementary
#5B1685 #778516 #168523
monochromatic
#13051C #370D50 #5B1685 #7F1FBA #9F37DE

Accessibility & contrast

On white

11.06
#5B1685 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1685
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1685#FFFFFF#000000##FFFFFF
##5B16851.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003988
Deuteranopia (green-blind)
#003C83
Tritanopia (blue-blind)
#54344F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5b1685;
/* rgb */ color: rgb(91, 22, 133);
/* oklch */ color: oklch(37.8% 0.171 308.0);
Tailwind
colors: {
  custom: {
    50: '#8e5da9',
    500: '#5b1685',
    950: '#000000',
  },
}
SCSS
$custom: #5b1685;
$custom-light: #8e5da9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1685",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 133
  },
  "hsl": {
    "h": 277.297,
    "s": 71.613,
    "l": 30.392
  },
  "oklch": {
    "l": 0.37772,
    "c": 0.17078,
    "h": 308
  },
  "luminance": 0.04491
}

Semantic roles & 50–950 ramp

primary
#5B1685
secondary
#6CB93E
accent
#EE397E
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1685

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

Preview Lab → · Contrast checker → · Palette generator →

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