#5D2096#5D2096

#5D2096 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.178 H 302.3°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#5D2096
RGBrgb(93, 32, 150)
HSLhsl(271, 65%, 36%)
HSVhsv(271, 79%, 59%)
CMYKcmyk(38%, 78.7%, 0%, 41.2%)
CIE-LABlab(28.28, 49.31, -52.88)
CIE-LCHlch(28.28, 72.30, 313.00°)
OKLaboklab(40.41% 0.0953 -0.1509)
OKLCHoklch(40.41% 0.178 302.3)
XYZxyz(10.5344, 5.5622, 29.3669)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2096 #599620
analogous
#222096 #5D2096 #962094
triadic
#5D2096 #965D20 #20965D
tetradic
#5D2096 #962220 #599620 #209496
square
#5D2096 #962220 #599620 #209496
split-complementary
#5D2096 #949620 #209622
monochromatic
#1E0A31 #3E1564 #5D2096 #7C2BC8 #9A56DB

Accessibility & contrast

On white

9.94
#5D2096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5D2096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2096
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2096#FFFFFF#000000##FFFFFF
##5D20961.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004299
Deuteranopia (green-blind)
#004294
Tritanopia (blue-blind)
#513F5A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5d2096;
/* rgb */ color: rgb(93, 32, 150);
/* oklch */ color: oklch(40.4% 0.178 302.3);
Tailwind
colors: {
  custom: {
    50: '#9163b6',
    500: '#5d2096',
    950: '#000000',
  },
}
SCSS
$custom: #5d2096;
$custom-light: #9163b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2096",
  "rgb": {
    "r": 93,
    "g": 32,
    "b": 150
  },
  "hsl": {
    "h": 271.017,
    "s": 64.835,
    "l": 35.686
  },
  "oklch": {
    "l": 0.4041,
    "c": 0.17846,
    "h": 302.3
  },
  "luminance": 0.05562
}

Semantic roles & 50–950 ramp

primary
#5D2096
secondary
#87BE53
accent
#E84091
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D2096

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

Preview Lab → · Contrast checker → · Palette generator →

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