#5D1889#5D1889

#5D1889 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.173 H 307.5°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#5D1889
RGBrgb(93, 24, 137)
HSLhsl(277, 70%, 32%)
HSVhsv(277, 82%, 54%)
CMYKcmyk(32.1%, 82.5%, 0%, 46.3%)
CIE-LABlab(26.12, 49.31, -48.35)
CIE-LCHlch(26.12, 69.06, 315.56°)
OKLaboklab(38.56% 0.1055 -0.1376)
OKLCHoklch(38.56% 0.173 307.5)
XYZxyz(9.3552, 4.7867, 24.0931)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1889 #448918
analogous
#251889 #5D1889 #89187D
triadic
#5D1889 #895D18 #18895D
tetradic
#5D1889 #892518 #448918 #187D89
square
#5D1889 #892518 #448918 #187D89
split-complementary
#5D1889 #7D8918 #188925
monochromatic
#160621 #3A0F55 #5D1889 #8021BD #9F3EDD

Accessibility & contrast

On white

10.73
#5D1889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5D1889 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1889
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1889#FFFFFF#000000##FFFFFF
##5D18891.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d1889;
/* rgb */ color: rgb(93, 24, 137);
/* oklch */ color: oklch(38.6% 0.173 307.5);
Tailwind
colors: {
  custom: {
    50: '#905fac',
    500: '#5d1889',
    950: '#000000',
  },
}
SCSS
$custom: #5d1889;
$custom-light: #905fac;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1889",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 137
  },
  "hsl": {
    "h": 276.637,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38557,
    "c": 0.17333,
    "h": 307.5
  },
  "luminance": 0.04787
}

Semantic roles & 50–950 ramp

primary
#5D1889
secondary
#71BD40
accent
#ED3B80
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1889

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

Preview Lab → · Contrast checker → · Palette generator →

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