#5D1B82#5D1B82

#5D1B82 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.163 H 309.8°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#5D1B82
RGBrgb(93, 27, 130)
HSLhsl(278, 66%, 31%)
HSVhsv(278, 79%, 51%)
CMYKcmyk(28.5%, 79.2%, 0%, 49%)
CIE-LABlab(25.93, 46.61, -44.27)
CIE-LCHlch(25.93, 64.28, 316.47°)
OKLaboklab(38.25% 0.1046 -0.1256)
OKLCHoklch(38.25% 0.163 309.8)
XYZxyz(8.9346, 4.7229, 21.5557)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1B82 #40821B
analogous
#2A1B82 #5D1B82 #821B73
triadic
#5D1B82 #825D1B #1B825D
tetradic
#5D1B82 #822A1B #40821B #1B7382
square
#5D1B82 #822A1B #40821B #1B7382
split-complementary
#5D1B82 #73821B #1B822A
monochromatic
#14061D #39104F #5D1B82 #8126B5 #A140D7

Accessibility & contrast

On white

10.80
#5D1B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5D1B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1B82
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1B82#FFFFFF#000000##FFFFFF
##5D1B821.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B85
Deuteranopia (green-blind)
#003E80
Tritanopia (blue-blind)
#58344E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d1b82;
/* rgb */ color: rgb(93, 27, 130);
/* oklch */ color: oklch(38.2% 0.163 309.8);
Tailwind
colors: {
  custom: {
    50: '#8f5fa7',
    500: '#5d1b82',
    950: '#000000',
  },
}
SCSS
$custom: #5d1b82;
$custom-light: #8f5fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1b82",
  "rgb": {
    "r": 93,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 278.447,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38246,
    "c": 0.16344,
    "h": 309.8
  },
  "luminance": 0.04723
}

Semantic roles & 50–950 ramp

primary
#5D1B82
secondary
#6CB643
accent
#E93F7C
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D1B82

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

Preview Lab → · Contrast checker → · Palette generator →

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