#5D3E95#5D3E95

#5D3E95 is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.4% C 0.137 H 296.9°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#5D3E95
RGBrgb(93, 62, 149)
HSLhsl(261, 41%, 41%)
HSVhsv(261, 58%, 58%)
CMYKcmyk(37.6%, 58.4%, 0%, 41.6%)
CIE-LABlab(33.86, 33.52, -43.22)
CIE-LCHlch(33.86, 54.70, 307.80°)
OKLaboklab(44.4% 0.0621 -0.1226)
OKLCHoklch(44.4% 0.137 296.9)
XYZxyz(11.6603, 7.9421, 29.3466)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3E95 #76953E
analogous
#3E4B95 #5D3E95 #893E95
triadic
#5D3E95 #955D3E #3E955D
tetradic
#5D3E95 #953E4B #76953E #3E9589
square
#5D3E95 #953E4B #76953E #3E9589
split-complementary
#5D3E95 #95893E #4B953E
monochromatic
#271A3F #422C6A #5D3E95 #7A57B9 #9C82CB

Accessibility & contrast

On white

8.11
#5D3E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5D3E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3E95
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3E95#FFFFFF#000000##FFFFFF
##5D3E951.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#115098
Deuteranopia (green-blind)
#1E4F93
Tritanopia (blue-blind)
#505063
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5d3e95;
/* rgb */ color: rgb(93, 62, 149);
/* oklch */ color: oklch(44.4% 0.137 296.9);
Tailwind
colors: {
  custom: {
    50: '#8f74b5',
    500: '#5d3e95',
    950: '#000000',
  },
}
SCSS
$custom: #5d3e95;
$custom-light: #8f74b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3e95",
  "rgb": {
    "r": 93,
    "g": 62,
    "b": 149
  },
  "hsl": {
    "h": 261.379,
    "s": 41.232,
    "l": 41.373
  },
  "oklch": {
    "l": 0.44397,
    "c": 0.13748,
    "h": 296.9
  },
  "luminance": 0.07942
}

Semantic roles & 50–950 ramp

primary
#5D3E95
secondary
#A0B57A
accent
#D157A5
background
#F9F7FB
surface
#F1EDF6
border
#CBC8D0
text
#0D0811
muted
#7E7B80

Preview Lab

Preview with #5D3E95

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

Preview Lab → · Contrast checker → · Palette generator →

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