#5D1994#5D1994

#5D1994 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.183 H 303.6°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#5D1994
RGBrgb(93, 25, 148)
HSLhsl(273, 71%, 34%)
HSVhsv(273, 83%, 58%)
CMYKcmyk(37.2%, 83.1%, 0%, 42%)
CIE-LABlab(27.19, 51.50, -53.43)
CIE-LCHlch(27.19, 74.21, 313.95°)
OKLaboklab(39.59% 0.1015 -0.1525)
OKLCHoklch(39.59% 0.183 303.6)
XYZxyz(10.2059, 5.1605, 28.4696)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1994 #509419
analogous
#201994 #5D1994 #94198E
triadic
#5D1994 #945D19 #19945D
tetradic
#5D1994 #942019 #509419 #198E94
square
#5D1994 #942019 #509419 #198E94
split-complementary
#5D1994 #8E9419 #199420
monochromatic
#1B072B #3C1060 #5D1994 #7E22C8 #9C47E0

Accessibility & contrast

On white

10.33
#5D1994 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5D1994 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1994
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1994#FFFFFF#000000##FFFFFF
##5D19941.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F97
Deuteranopia (green-blind)
#004092
Tritanopia (blue-blind)
#523B58
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5d1994;
/* rgb */ color: rgb(93, 25, 148);
/* oklch */ color: oklch(39.6% 0.183 303.6);
Tailwind
colors: {
  custom: {
    50: '#9160b4',
    500: '#5d1994',
    950: '#000000',
  },
}
SCSS
$custom: #5d1994;
$custom-light: #9160b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1994",
  "rgb": {
    "r": 93,
    "g": 25,
    "b": 148
  },
  "hsl": {
    "h": 273.171,
    "s": 71.098,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39594,
    "c": 0.18315,
    "h": 303.6
  },
  "luminance": 0.05161
}

Semantic roles & 50–950 ramp

primary
#5D1994
secondary
#7EC147
accent
#EE3A8A
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5D1994

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

Preview Lab → · Contrast checker → · Palette generator →

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