#5D1F89#5D1F89

#5D1F89 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.166 H 306.7°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#5D1F89
RGBrgb(93, 31, 137)
HSLhsl(275, 63%, 33%)
HSVhsv(275, 77%, 54%)
CMYKcmyk(32.1%, 77.4%, 0%, 46.3%)
CIE-LABlab(27.06, 46.61, -46.83)
CIE-LCHlch(27.06, 66.07, 314.87°)
OKLaboklab(39.21% 0.0993 -0.1331)
OKLCHoklch(39.21% 0.166 306.7)
XYZxyz(9.5186, 5.1134, 24.1476)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1F89 #4B891F
analogous
#281F89 #5D1F89 #891F80
triadic
#5D1F89 #895D1F #1F895D
tetradic
#5D1F89 #89281F #4B891F #1F8089
square
#5D1F89 #89281F #4B891F #1F8089
split-complementary
#5D1F89 #80891F #1F8928
monochromatic
#190825 #3B1457 #5D1F89 #7F2ABB #9D4CD6

Accessibility & contrast

On white

10.38
#5D1F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5D1F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1F89
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1F89#FFFFFF#000000##FFFFFF
##5D1F891.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8C
Deuteranopia (green-blind)
#004087
Tritanopia (blue-blind)
#553953
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5d1f89;
/* rgb */ color: rgb(93, 31, 137);
/* oklch */ color: oklch(39.2% 0.166 306.7);
Tailwind
colors: {
  custom: {
    50: '#8f62ac',
    500: '#5d1f89',
    950: '#000000',
  },
}
SCSS
$custom: #5d1f89;
$custom-light: #8f62ac;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1f89",
  "rgb": {
    "r": 93,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 275.094,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39214,
    "c": 0.1661,
    "h": 306.7
  },
  "luminance": 0.05113
}

Semantic roles & 50–950 ramp

primary
#5D1F89
secondary
#79B94B
accent
#E64286
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5D1F89

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

Preview Lab → · Contrast checker → · Palette generator →

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