#5D3389#5D3389

#5D3389 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 41.8% C 0.139 H 303.4°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#5D3389
RGBrgb(93, 51, 137)
HSLhsl(269, 46%, 37%)
HSVhsv(269, 63%, 54%)
CMYKcmyk(32.1%, 62.8%, 0%, 46.3%)
CIE-LABlab(30.64, 36.66, -41.03)
CIE-LCHlch(30.64, 55.02, 311.78°)
OKLaboklab(41.78% 0.0766 -0.1162)
OKLCHoklch(41.78% 0.139 303.4)
XYZxyz(10.2124, 6.5010, 24.3789)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D3389 #5F8933
analogous
#333489 #5D3389 #883389
triadic
#5D3389 #895D33 #33895D
tetradic
#5D3389 #893334 #5F8933 #338988
square
#5D3389 #893334 #5F8933 #338988
split-complementary
#5D3389 #898833 #348933
monochromatic
#201230 #3F225C #5D3389 #7B44B6 #9A6EC9

Accessibility & contrast

On white

9.13
#5D3389 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5D3389 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D3389
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D3389#FFFFFF#000000##FFFFFF
##5D33891.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01478C
Deuteranopia (green-blind)
#1C4887
Tritanopia (blue-blind)
#554559
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5d3389;
/* rgb */ color: rgb(93, 51, 137);
/* oklch */ color: oklch(41.8% 0.139 303.4);
Tailwind
colors: {
  custom: {
    50: '#8e6dac',
    500: '#5d3389',
    950: '#000000',
  },
}
SCSS
$custom: #5d3389;
$custom-light: #8e6dac;
$custom-dark: #000000;
JSON
{
  "hex": "#5d3389",
  "rgb": {
    "r": 93,
    "g": 51,
    "b": 137
  },
  "hsl": {
    "h": 269.302,
    "s": 45.745,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41783,
    "c": 0.13917,
    "h": 303.4
  },
  "luminance": 0.06501
}

Semantic roles & 50–950 ramp

primary
#5D3389
secondary
#8DB167
accent
#D55295
background
#F9F6FA
surface
#F1ECF4
border
#CBC7CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5D3389

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

Preview Lab → · Contrast checker → · Palette generator →

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