#5D338F#5D338F

#5D338F is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.2% C 0.147 H 301.4°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#5D338F
RGBrgb(93, 51, 143)
HSLhsl(267, 47%, 38%)
HSVhsv(267, 64%, 56%)
CMYKcmyk(35%, 64.3%, 0%, 43.9%)
CIE-LABlab(31.06, 38.23, -44.06)
CIE-LCHlch(31.06, 58.33, 310.95°)
OKLaboklab(42.22% 0.0763 -0.1251)
OKLCHoklch(42.22% 0.147 301.4)
XYZxyz(10.6548, 6.6779, 26.7089)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D338F #658F33
analogous
#33378F #5D338F #8B338F
triadic
#5D338F #8F5D33 #338F5D
tetradic
#5D338F #8F3337 #658F33 #338F8B
square
#5D338F #8F3337 #658F33 #338F8B
split-complementary
#5D338F #8F8B33 #378F33
monochromatic
#221335 #402362 #5D338F #7A43BC #9A70CC

Accessibility & contrast

On white

8.99
#5D338F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5D338F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D338F
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D338F#FFFFFF#000000##FFFFFF
##5D338F1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004992
Deuteranopia (green-blind)
#12498D
Tritanopia (blue-blind)
#53475C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5d338f;
/* rgb */ color: rgb(93, 51, 143);
/* oklch */ color: oklch(42.2% 0.147 301.4);
Tailwind
colors: {
  custom: {
    50: '#8f6db0',
    500: '#5d338f',
    950: '#000000',
  },
}
SCSS
$custom: #5d338f;
$custom-light: #8f6db0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d338f",
  "rgb": {
    "r": 93,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 267.391,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.42221,
    "c": 0.14651,
    "h": 301.4
  },
  "luminance": 0.06678
}

Semantic roles & 50–950 ramp

primary
#5D338F
secondary
#92B46A
accent
#D7519A
background
#F9F6FA
surface
#F1ECF5
border
#CBC7CF
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5D338F

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

Preview Lab → · Contrast checker → · Palette generator →

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