#5D3096#5D3096

#5D3096 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.159 H 299.8°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#5D3096
RGBrgb(93, 48, 150)
HSLhsl(266, 52%, 39%)
HSVhsv(266, 68%, 59%)
CMYKcmyk(38%, 68%, 0%, 41.2%)
CIE-LABlab(30.98, 41.71, -48.48)
CIE-LCHlch(30.98, 63.96, 310.71°)
OKLaboklab(42.33% 0.0791 -0.1381)
OKLCHoklch(42.33% 0.159 299.8)
XYZxyz(11.0748, 6.6430, 29.5470)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3096 #699630
analogous
#303696 #5D3096 #903096
triadic
#5D3096 #965D30 #30965D
tetradic
#5D3096 #963036 #699630 #309690
square
#5D3096 #963036 #699630 #309690
split-complementary
#5D3096 #969030 #369630
monochromatic
#241239 #402168 #5D3096 #7A41C2 #9A6FD1

Accessibility & contrast

On white

9.02
#5D3096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5D3096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3096
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3096#FFFFFF#000000##FFFFFF
##5D30961.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004999
Deuteranopia (green-blind)
#004894
Tritanopia (blue-blind)
#50485F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5d3096;
/* rgb */ color: rgb(93, 48, 150);
/* oklch */ color: oklch(42.3% 0.159 299.8);
Tailwind
colors: {
  custom: {
    50: '#906bb6',
    500: '#5d3096',
    950: '#000000',
  },
}
SCSS
$custom: #5d3096;
$custom-light: #906bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3096",
  "rgb": {
    "r": 93,
    "g": 48,
    "b": 150
  },
  "hsl": {
    "h": 266.471,
    "s": 51.515,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42325,
    "c": 0.15916,
    "h": 299.8
  },
  "luminance": 0.06643
}

Semantic roles & 50–950 ramp

primary
#5D3096
secondary
#96B969
accent
#DB4D9C
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5D3096

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

Preview Lab → · Contrast checker → · Palette generator →

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