#5D428E#5D428E

#5D428E is a dark, vivid violet. Relative luminance 0.082; OKLCH L 44.6% C 0.122 H 297.7°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#5D428E
RGBrgb(93, 66, 142)
HSLhsl(261, 37%, 41%)
HSVhsv(261, 54%, 56%)
CMYKcmyk(34.5%, 53.5%, 0%, 44.3%)
CIE-LABlab(34.35, 29.16, -38.17)
CIE-LCHlch(34.35, 48.03, 307.38°)
OKLaboklab(44.61% 0.0565 -0.1078)
OKLCHoklch(44.61% 0.122 297.7)
XYZxyz(11.3437, 8.1764, 26.5665)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D428E #738E42
analogous
#424D8E #5D428E #83428E
triadic
#5D428E #8E5D42 #428E5D
tetradic
#5D428E #8E424D #738E42 #428E83
square
#5D428E #8E424D #738E42 #428E83
split-complementary
#5D428E #8E8342 #4D8E42
monochromatic
#261B3A #422F64 #5D428E #7A5BB3 #9C84C6

Accessibility & contrast

On white

7.97
#5D428E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5D428E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D428E
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D428E#FFFFFF#000000##FFFFFF
##5D428E1.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255191
Deuteranopia (green-blind)
#2C508C
Tritanopia (blue-blind)
#525161
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5d428e;
/* rgb */ color: rgb(93, 66, 142);
/* oklch */ color: oklch(44.6% 0.122 297.7);
Tailwind
colors: {
  custom: {
    50: '#8e77af',
    500: '#5d428e',
    950: '#000000',
  },
}
SCSS
$custom: #5d428e;
$custom-light: #8e77af;
$custom-dark: #000000;
JSON
{
  "hex": "#5d428e",
  "rgb": {
    "r": 93,
    "g": 66,
    "b": 142
  },
  "hsl": {
    "h": 261.316,
    "s": 36.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.44611,
    "c": 0.12174,
    "h": 297.7
  },
  "luminance": 0.08177
}

Semantic roles & 50–950 ramp

primary
#5D428E
secondary
#9EB17B
accent
#CD5BA4
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0C0810
muted
#7D7B7F

Preview Lab

Preview with #5D428E

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

Preview Lab → · Contrast checker → · Palette generator →

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