#5D1989#5D1989

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

Color values

HEX#5D1989
RGBrgb(93, 25, 137)
HSLhsl(276, 69%, 32%)
HSVhsv(276, 82%, 54%)
CMYKcmyk(32.1%, 81.8%, 0%, 46.3%)
CIE-LABlab(26.24, 48.96, -48.15)
CIE-LCHlch(26.24, 68.67, 315.47°)
OKLaboklab(38.64% 0.1046 -0.137)
OKLCHoklch(38.64% 0.172 307.4)
XYZxyz(9.3762, 4.8287, 24.1001)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1989 #458919
analogous
#251989 #5D1989 #89197D
triadic
#5D1989 #895D19 #19895D
tetradic
#5D1989 #892519 #458919 #197D89
square
#5D1989 #892519 #458919 #197D89
split-complementary
#5D1989 #7D8919 #198925
monochromatic
#170621 #3A1055 #5D1989 #8022BD #9F40DC

Accessibility & contrast

On white

10.68
#5D1989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1989
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1989#FFFFFF#000000##FFFFFF
##5D19891.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d1989;
/* rgb */ color: rgb(93, 25, 137);
/* oklch */ color: oklch(38.6% 0.172 307.4);
Tailwind
colors: {
  custom: {
    50: '#905fac',
    500: '#5d1989',
    950: '#000000',
  },
}
SCSS
$custom: #5d1989;
$custom-light: #905fac;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1989",
  "rgb": {
    "r": 93,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 276.429,
    "s": 69.136,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38643,
    "c": 0.17237,
    "h": 307.4
  },
  "luminance": 0.04829
}

Semantic roles & 50–950 ramp

primary
#5D1989
secondary
#72BC41
accent
#EC3C81
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1989

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

Preview Lab → · Contrast checker → · Palette generator →

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