#5D428B#5D428B

#5D428B is a dark, moderate violet. Relative luminance 0.081; OKLCH L 44.4% C 0.118 H 298.6°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#5D428B
RGBrgb(93, 66, 139)
HSLhsl(262, 36%, 40%)
HSVhsv(262, 53%, 55%)
CMYKcmyk(33.1%, 52.5%, 0%, 45.5%)
CIE-LABlab(34.16, 28.33, -36.62)
CIE-LCHlch(34.16, 46.30, 307.72°)
OKLaboklab(44.42% 0.0563 -0.1033)
OKLCHoklch(44.42% 0.118 298.6)
XYZxyz(11.1215, 8.0876, 25.3962)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D428B #708B42
analogous
#424B8B #5D428B #82428B
triadic
#5D428B #8B5D42 #428B5D
tetradic
#5D428B #8B424B #708B42 #428B82
square
#5D428B #8B424B #708B42 #428B82
split-complementary
#5D428B #8B8242 #4B8B42
monochromatic
#251B38 #412E62 #5D428B #7A5AB1 #9B83C4

Accessibility & contrast

On white

8.02
#5D428B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5D428B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D428B
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D428B#FFFFFF#000000##FFFFFF
##5D428B1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28508E
Deuteranopia (green-blind)
#2F5089
Tritanopia (blue-blind)
#535060
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5d428b;
/* rgb */ color: rgb(93, 66, 139);
/* oklch */ color: oklch(44.4% 0.118 298.6);
Tailwind
colors: {
  custom: {
    50: '#8d77ad',
    500: '#5d428b',
    950: '#000000',
  },
}
SCSS
$custom: #5d428b;
$custom-light: #8d77ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5d428b",
  "rgb": {
    "r": 93,
    "g": 66,
    "b": 139
  },
  "hsl": {
    "h": 262.192,
    "s": 35.61,
    "l": 40.196
  },
  "oklch": {
    "l": 0.44415,
    "c": 0.11763,
    "h": 298.6
  },
  "luminance": 0.08088
}

Semantic roles & 50–950 ramp

primary
#5D428B
secondary
#9BAF7A
accent
#CC5CA2
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0C0810
muted
#7D7B7F

Preview Lab

Preview with #5D428B

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

Preview Lab → · Contrast checker → · Palette generator →

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