#5D1A89#5D1A89

#5D1A89 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.171 H 307.3°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#5D1A89
RGBrgb(93, 26, 137)
HSLhsl(276, 68%, 32%)
HSVhsv(276, 81%, 54%)
CMYKcmyk(32.1%, 81%, 0%, 46.3%)
CIE-LABlab(26.37, 48.59, -47.95)
CIE-LCHlch(26.37, 68.26, 315.38°)
OKLaboklab(38.73% 0.1038 -0.1364)
OKLCHoklch(38.73% 0.171 307.3)
XYZxyz(9.3980, 4.8722, 24.1074)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1A89 #46891A
analogous
#251A89 #5D1A89 #891A7E
triadic
#5D1A89 #895D1A #1A895D
tetradic
#5D1A89 #89251A #46891A #1A7E89
square
#5D1A89 #89251A #46891A #1A7E89
split-complementary
#5D1A89 #7E891A #1A8925
monochromatic
#170622 #3A1056 #5D1A89 #8024BC #9F42DB

Accessibility & contrast

On white

10.64
#5D1A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5D1A89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1A89
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1A89#FFFFFF#000000##FFFFFF
##5D1A891.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8C
Deuteranopia (green-blind)
#003F87
Tritanopia (blue-blind)
#553752
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d1a89;
/* rgb */ color: rgb(93, 26, 137);
/* oklch */ color: oklch(38.7% 0.171 307.3);
Tailwind
colors: {
  custom: {
    50: '#905fac',
    500: '#5d1a89',
    950: '#000000',
  },
}
SCSS
$custom: #5d1a89;
$custom-light: #905fac;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1a89",
  "rgb": {
    "r": 93,
    "g": 26,
    "b": 137
  },
  "hsl": {
    "h": 276.216,
    "s": 68.098,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38731,
    "c": 0.17139,
    "h": 307.3
  },
  "luminance": 0.04872
}

Semantic roles & 50–950 ramp

primary
#5D1A89
secondary
#73BC43
accent
#EB3D82
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1A89

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

Preview Lab → · Contrast checker → · Palette generator →

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