#5B1675#5B1675

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

Color values

HEX#5B1675
RGBrgb(91, 22, 117)
HSLhsl(284, 68%, 27%)
HSVhsv(284, 81%, 46%)
CMYKcmyk(22.2%, 81.2%, 0%, 54.1%)
CIE-LABlab(23.94, 45.22, -39.25)
CIE-LCHlch(23.94, 59.88, 319.04°)
OKLaboklab(36.46% 0.109 -0.1109)
OKLCHoklch(36.46% 0.155 314.5)
XYZxyz(7.8116, 4.0826, 17.2027)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1675 #307516
analogous
#2C1675 #5B1675 #751660
triadic
#5B1675 #755B16 #16755B
tetradic
#5B1675 #752C16 #307516 #166075
square
#5B1675 #752C16 #307516 #166075
split-complementary
#5B1675 #607516 #16752C
monochromatic
#14051A #330C41 #5B1675 #8320A9 #A92ED8

Accessibility & contrast

On white

11.56
#5B1675 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5B1675 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1675
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1675#FFFFFF#000000##FFFFFF
##5B16751.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003578
Deuteranopia (green-blind)
#0F3B73
Tritanopia (blue-blind)
#592C45
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b1675;
/* rgb */ color: rgb(91, 22, 117);
/* oklch */ color: oklch(36.5% 0.155 314.5);
Tailwind
colors: {
  custom: {
    50: '#8d5c9d',
    500: '#5b1675',
    950: '#000000',
  },
}
SCSS
$custom: #5b1675;
$custom-light: #8d5c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1675",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 117
  },
  "hsl": {
    "h": 283.579,
    "s": 68.345,
    "l": 27.255
  },
  "oklch": {
    "l": 0.36463,
    "c": 0.15548,
    "h": 314.5
  },
  "luminance": 0.04082
}

Semantic roles & 50–950 ramp

primary
#5B1675
secondary
#5AAB3C
accent
#EB3D6C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5B1675

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

Preview Lab → · Contrast checker → · Palette generator →

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