#5D428C#5D428C

#5D428C is a dark, moderate violet. Relative luminance 0.081; OKLCH L 44.5% C 0.119 H 298.3°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#5D428C
RGBrgb(93, 66, 140)
HSLhsl(262, 36%, 40%)
HSVhsv(262, 53%, 55%)
CMYKcmyk(33.6%, 52.9%, 0%, 45.1%)
CIE-LABlab(34.23, 28.61, -37.14)
CIE-LCHlch(34.23, 46.88, 307.60°)
OKLaboklab(44.48% 0.0564 -0.1048)
OKLCHoklch(44.48% 0.119 298.3)
XYZxyz(11.1949, 8.1169, 25.7828)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D428C #718C42
analogous
#424C8C #5D428C #82428C
triadic
#5D428C #8C5D42 #428C5D
tetradic
#5D428C #8C424C #718C42 #428C82
square
#5D428C #8C424C #718C42 #428C82
split-complementary
#5D428C #8C8242 #4C8C42
monochromatic
#261B39 #412E62 #5D428C #7A5AB1 #9B84C5

Accessibility & contrast

On white

8.00
#5D428C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D428C
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D428C#FFFFFF#000000##FFFFFF
##5D428C1.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27518F
Deuteranopia (green-blind)
#2E508A
Tritanopia (blue-blind)
#535060
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5d428c;
/* rgb */ color: rgb(93, 66, 140);
/* oklch */ color: oklch(44.5% 0.119 298.3);
Tailwind
colors: {
  custom: {
    50: '#8d77ae',
    500: '#5d428c',
    950: '#000000',
  },
}
SCSS
$custom: #5d428c;
$custom-light: #8d77ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5d428c",
  "rgb": {
    "r": 93,
    "g": 66,
    "b": 140
  },
  "hsl": {
    "h": 261.892,
    "s": 35.922,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4448,
    "c": 0.119,
    "h": 298.3
  },
  "luminance": 0.08117
}

Semantic roles & 50–950 ramp

primary
#5D428C
secondary
#9CB07A
accent
#CC5CA3
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0C0810
muted
#7D7B7F

Preview Lab

Preview with #5D428C

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

Preview Lab → · Contrast checker → · Palette generator →

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