#5B428E#5B428E

#5B428E is a dark, vivid violet. Relative luminance 0.081; OKLCH L 44.4% C 0.121 H 296.3°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#5B428E
RGBrgb(91, 66, 142)
HSLhsl(260, 37%, 41%)
HSVhsv(260, 54%, 56%)
CMYKcmyk(35.9%, 53.5%, 0%, 44.3%)
CIE-LABlab(34.14, 28.62, -38.52)
CIE-LCHlch(34.14, 47.99, 306.61°)
OKLaboklab(44.4% 0.0538 -0.1089)
OKLCHoklch(44.4% 0.121 296.3)
XYZxyz(11.1439, 8.0734, 26.5571)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B428E #758E42
analogous
#424F8E #5B428E #81428E
triadic
#5B428E #8E5B42 #428E5B
tetradic
#5B428E #8E424F #758E42 #428E81
square
#5B428E #8E424F #758E42 #428E81
split-complementary
#5B428E #8E8142 #4F8E42
monochromatic
#251B3A #402F64 #5B428E #785BB3 #9A84C6

Accessibility & contrast

On white

8.03
#5B428E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5B428E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B428E
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B428E#FFFFFF#000000##FFFFFF
##5B428E1.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245191
Deuteranopia (green-blind)
#2A4F8C
Tritanopia (blue-blind)
#4F5161
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5b428e;
/* rgb */ color: rgb(91, 66, 142);
/* oklch */ color: oklch(44.4% 0.121 296.3);
Tailwind
colors: {
  custom: {
    50: '#8c77af',
    500: '#5b428e',
    950: '#000000',
  },
}
SCSS
$custom: #5b428e;
$custom-light: #8c77af;
$custom-dark: #000000;
JSON
{
  "hex": "#5b428e",
  "rgb": {
    "r": 91,
    "g": 66,
    "b": 142
  },
  "hsl": {
    "h": 259.737,
    "s": 36.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.44403,
    "c": 0.12148,
    "h": 296.3
  },
  "luminance": 0.08074
}

Semantic roles & 50–950 ramp

primary
#5B428E
secondary
#9FB17B
accent
#CD5BA7
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0C0810
muted
#7D7B7F

Preview Lab

Preview with #5B428E

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

Preview Lab → · Contrast checker → · Palette generator →

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