#5D1789#5D1789

#5D1789 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.5% C 0.174 H 307.6°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#5D1789
RGBrgb(93, 23, 137)
HSLhsl(277, 71%, 31%)
HSVhsv(277, 83%, 54%)
CMYKcmyk(32.1%, 83.2%, 0%, 46.3%)
CIE-LABlab(26.00, 49.66, -48.55)
CIE-LCHlch(26.00, 69.45, 315.65°)
OKLaboklab(38.47% 0.1062 -0.1381)
OKLCHoklch(38.47% 0.174 307.6)
XYZxyz(9.3350, 4.7462, 24.0864)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1789 #438917
analogous
#241789 #5D1789 #89177C
triadic
#5D1789 #895D17 #17895D
tetradic
#5D1789 #892417 #438917 #177C89
square
#5D1789 #892417 #438917 #177C89
split-complementary
#5D1789 #7C8917 #178924
monochromatic
#160520 #390E55 #5D1789 #8120BD #A03CDE

Accessibility & contrast

On white

10.77
#5D1789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5D1789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1789
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1789#FFFFFF#000000##FFFFFF
##5D17891.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d1789;
/* rgb */ color: rgb(93, 23, 137);
/* oklch */ color: oklch(38.5% 0.174 307.6);
Tailwind
colors: {
  custom: {
    50: '#905eac',
    500: '#5d1789',
    950: '#000000',
  },
}
SCSS
$custom: #5d1789;
$custom-light: #905eac;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1789",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 137
  },
  "hsl": {
    "h": 276.842,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38474,
    "c": 0.17425,
    "h": 307.6
  },
  "luminance": 0.04746
}

Semantic roles & 50–950 ramp

primary
#5D1789
secondary
#70BD3F
accent
#EE3A7F
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1789

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

Preview Lab → · Contrast checker → · Palette generator →

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