#5D3A96#5D3A96

#5D3A96 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 43.8% C 0.145 H 297.6°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#5D3A96
RGBrgb(93, 58, 150)
HSLhsl(263, 44%, 41%)
HSVhsv(263, 61%, 59%)
CMYKcmyk(38%, 61.3%, 0%, 41.2%)
CIE-LABlab(33.04, 36.15, -45.16)
CIE-LCHlch(33.04, 57.84, 308.68°)
OKLaboklab(43.82% 0.0672 -0.1283)
OKLCHoklch(43.82% 0.145 297.6)
XYZxyz(11.5309, 7.5551, 29.6990)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3A96 #73963A
analogous
#3A4596 #5D3A96 #8B3A96
triadic
#5D3A96 #965D3A #3A965D
tetradic
#5D3A96 #963A45 #73963A #3A968B
square
#5D3A96 #963A45 #73963A #3A968B
split-complementary
#5D3A96 #968B3A #45963A
monochromatic
#26183E #42296A #5D3A96 #7A51BC #9C7DCD

Accessibility & contrast

On white

8.36
#5D3A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5D3A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3A96
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3A96#FFFFFF#000000##FFFFFF
##5D3A961.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E99
Deuteranopia (green-blind)
#144D94
Tritanopia (blue-blind)
#504E62
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5d3a96;
/* rgb */ color: rgb(93, 58, 150);
/* oklch */ color: oklch(43.8% 0.145 297.6);
Tailwind
colors: {
  custom: {
    50: '#8f72b5',
    500: '#5d3a96',
    950: '#000000',
  },
}
SCSS
$custom: #5d3a96;
$custom-light: #8f72b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3a96",
  "rgb": {
    "r": 93,
    "g": 58,
    "b": 150
  },
  "hsl": {
    "h": 262.826,
    "s": 44.231,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43815,
    "c": 0.14487,
    "h": 297.6
  },
  "luminance": 0.07555
}

Semantic roles & 50–950 ramp

primary
#5D3A96
secondary
#9EB675
accent
#D454A3
background
#F9F7FB
surface
#F1EDF6
border
#CBC8D0
text
#0D0811
muted
#7E7B80

Preview Lab

Preview with #5D3A96

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

Preview Lab → · Contrast checker → · Palette generator →

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