#5D3B8A#5D3B8A

#5D3B8A is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.1% C 0.128 H 301.1°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#5D3B8A
RGBrgb(93, 59, 138)
HSLhsl(266, 40%, 39%)
HSVhsv(266, 57%, 54%)
CMYKcmyk(32.6%, 57.2%, 0%, 45.9%)
CIE-LABlab(32.46, 32.29, -38.73)
CIE-LCHlch(32.46, 50.42, 309.82°)
OKLaboklab(43.13% 0.0659 -0.1095)
OKLCHoklch(43.13% 0.128 301.1)
XYZxyz(10.6645, 7.2900, 24.8851)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3B8A #688A3B
analogous
#3B408A #5D3B8A #843B8A
triadic
#5D3B8A #8A5D3B #3B8A5D
tetradic
#5D3B8A #8A3B40 #688A3B #3B8A84
square
#5D3B8A #8A3B40 #688A3B #3B8A84
split-complementary
#5D3B8A #8A843B #408A3B
monochromatic
#231634 #40295F #5D3B8A #7A4FB4 #9A79C6

Accessibility & contrast

On white

8.54
#5D3B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#5D3B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3B8A
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3B8A#FFFFFF#000000##FFFFFF
##5D3B8A1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4C8D
Deuteranopia (green-blind)
#274C88
Tritanopia (blue-blind)
#544B5C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5d3b8a;
/* rgb */ color: rgb(93, 59, 138);
/* oklch */ color: oklch(43.1% 0.128 301.1);
Tailwind
colors: {
  custom: {
    50: '#8e72ad',
    500: '#5d3b8a',
    950: '#000000',
  },
}
SCSS
$custom: #5d3b8a;
$custom-light: #8e72ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3b8a",
  "rgb": {
    "r": 93,
    "g": 59,
    "b": 138
  },
  "hsl": {
    "h": 265.823,
    "s": 40.102,
    "l": 38.627
  },
  "oklch": {
    "l": 0.43133,
    "c": 0.1278,
    "h": 301.1
  },
  "luminance": 0.0729
}

Semantic roles & 50–950 ramp

primary
#5D3B8A
secondary
#95AF71
accent
#D0589C
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0C0810
muted
#7D7B7F

Preview Lab

Preview with #5D3B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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