#5B1975#5B1975

#5B1975 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.7% C 0.152 H 314.2°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#5B1975
RGBrgb(91, 25, 117)
HSLhsl(283, 65%, 28%)
HSVhsv(283, 79%, 46%)
CMYKcmyk(22.2%, 78.6%, 0%, 54.1%)
CIE-LABlab(24.33, 44.09, -38.62)
CIE-LCHlch(24.33, 58.62, 318.79°)
OKLaboklab(36.74% 0.1062 -0.109)
OKLCHoklch(36.74% 0.152 314.2)
XYZxyz(7.8724, 4.2040, 17.2229)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1975 #337519
analogous
#2D1975 #5B1975 #751961
triadic
#5B1975 #755B19 #19755B
tetradic
#5B1975 #752D19 #337519 #196175
square
#5B1975 #752D19 #337519 #196175
split-complementary
#5B1975 #617519 #19752D
monochromatic
#140519 #340E43 #5B1975 #8224A7 #A735D4

Accessibility & contrast

On white

11.41
#5B1975 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5B1975 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1975
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1975#FFFFFF#000000##FFFFFF
##5B19751.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003678
Deuteranopia (green-blind)
#123B73
Tritanopia (blue-blind)
#592E46
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5b1975;
/* rgb */ color: rgb(91, 25, 117);
/* oklch */ color: oklch(36.7% 0.152 314.2);
Tailwind
colors: {
  custom: {
    50: '#8d5e9d',
    500: '#5b1975',
    950: '#000000',
  },
}
SCSS
$custom: #5b1975;
$custom-light: #8d5e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1975",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 117
  },
  "hsl": {
    "h": 283.043,
    "s": 64.789,
    "l": 27.843
  },
  "oklch": {
    "l": 0.36739,
    "c": 0.1522,
    "h": 314.2
  },
  "luminance": 0.04204
}

Semantic roles & 50–950 ramp

primary
#5B1975
secondary
#5EAA40
accent
#E8406F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D050E
muted
#7D797E

Preview Lab

Preview with #5B1975

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

Preview Lab → · Contrast checker → · Palette generator →

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