#5D338E#5D338E

#5D338E is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.1% C 0.145 H 301.7°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#5D338E
RGBrgb(93, 51, 142)
HSLhsl(268, 47%, 38%)
HSVhsv(268, 64%, 56%)
CMYKcmyk(34.5%, 64.1%, 0%, 44.3%)
CIE-LABlab(30.99, 37.97, -43.55)
CIE-LCHlch(30.99, 57.78, 311.08°)
OKLaboklab(42.15% 0.0763 -0.1236)
OKLCHoklch(42.15% 0.145 301.7)
XYZxyz(10.5794, 6.6478, 26.3117)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D338E #648E33
analogous
#33378E #5D338E #8A338E
triadic
#5D338E #8E5D33 #338E5D
tetradic
#5D338E #8E3337 #648E33 #338E8A
square
#5D338E #8E3337 #648E33 #338E8A
split-complementary
#5D338E #8E8A33 #378E33
monochromatic
#221334 #402361 #5D338E #7A43BB #9A70CC

Accessibility & contrast

On white

9.01
#5D338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D338E
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D338E#FFFFFF#000000##FFFFFF
##5D338E1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#14498C
Tritanopia (blue-blind)
#53475B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5d338e;
/* rgb */ color: rgb(93, 51, 142);
/* oklch */ color: oklch(42.1% 0.145 301.7);
Tailwind
colors: {
  custom: {
    50: '#8f6db0',
    500: '#5d338e',
    950: '#000000',
  },
}
SCSS
$custom: #5d338e;
$custom-light: #8f6db0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d338e",
  "rgb": {
    "r": 93,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 267.692,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.42147,
    "c": 0.14528,
    "h": 301.7
  },
  "luminance": 0.06648
}

Semantic roles & 50–950 ramp

primary
#5D338E
secondary
#91B469
accent
#D75199
background
#F9F6FA
surface
#F1ECF5
border
#CBC7CF
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5D338E

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

Preview Lab → · Contrast checker → · Palette generator →

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