#5B1674#5B1674

#5B1674 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.4% C 0.155 H 315.0°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#5B1674
RGBrgb(91, 22, 116)
HSLhsl(284, 68%, 27%)
HSVhsv(284, 81%, 45%)
CMYKcmyk(21.6%, 81%, 0%, 54.5%)
CIE-LABlab(23.87, 45.01, -38.74)
CIE-LCHlch(23.87, 59.38, 319.28°)
OKLaboklab(36.39% 0.1092 -0.1094)
OKLCHoklch(36.39% 0.155 315)
XYZxyz(7.7532, 4.0592, 16.8947)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1674 #2F7416
analogous
#2C1674 #5B1674 #74165E
triadic
#5B1674 #745B16 #16745B
tetradic
#5B1674 #742C16 #2F7416 #165E74
square
#5B1674 #742C16 #2F7416 #165E74
split-complementary
#5B1674 #5E7416 #16742C
monochromatic
#14051A #330C41 #5B1674 #8320A7 #AA2DD7

Accessibility & contrast

On white

11.59
#5B1674 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5B1674 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1674
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1674#FFFFFF#000000##FFFFFF
##5B16741.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003577
Deuteranopia (green-blind)
#113A72
Tritanopia (blue-blind)
#592C45
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b1674;
/* rgb */ color: rgb(91, 22, 116);
/* oklch */ color: oklch(36.4% 0.155 315.0);
Tailwind
colors: {
  custom: {
    50: '#8d5c9d',
    500: '#5b1674',
    950: '#000000',
  },
}
SCSS
$custom: #5b1674;
$custom-light: #8d5c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1674",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 116
  },
  "hsl": {
    "h": 284.043,
    "s": 68.116,
    "l": 27.059
  },
  "oklch": {
    "l": 0.36385,
    "c": 0.15454,
    "h": 315
  },
  "luminance": 0.04059
}

Semantic roles & 50–950 ramp

primary
#5B1674
secondary
#59AA3C
accent
#EB3D6B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5B1674

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

Preview Lab → · Contrast checker → · Palette generator →

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