#5E548B#5E548B

#5E548B is a mid, moderate violet. Relative luminance 0.106; OKLCH L 48.0% C 0.087 H 291.1°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#5E548B
RGBrgb(94, 84, 139)
HSLhsl(251, 25%, 44%)
HSVhsv(251, 40%, 55%)
CMYKcmyk(32.4%, 39.6%, 0%, 45.5%)
CIE-LABlab(38.87, 17.39, -29.17)
CIE-LCHlch(38.87, 33.96, 300.80°)
OKLaboklab(47.98% 0.0314 -0.0816)
OKLCHoklch(47.98% 0.087 291.1)
XYZxyz(12.4454, 10.5842, 25.8083)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E548B #818B54
analogous
#54658B #5E548B #79548B
triadic
#5E548B #8B5E54 #548B5E
tetradic
#5E548B #8B5465 #818B54 #548B79
square
#5E548B #8B5465 #818B54 #548B79
split-complementary
#5E548B #8B7954 #658B54
monochromatic
#2A263F #443D65 #5E548B #7C72AA #A098C1

Accessibility & contrast

On white

6.74
#5E548B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5E548B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E548B
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E548B#FFFFFF#000000##FFFFFF
##5E548B1.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#445C8D
Deuteranopia (green-blind)
#445A8A
Tritanopia (blue-blind)
#535E69
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5e548b;
/* rgb */ color: rgb(94, 84, 139);
/* oklch */ color: oklch(48.0% 0.087 291.1);
Tailwind
colors: {
  custom: {
    50: '#8d84ad',
    500: '#5e548b',
    950: '#000000',
  },
}
SCSS
$custom: #5e548b;
$custom-light: #8d84ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5e548b",
  "rgb": {
    "r": 94,
    "g": 84,
    "b": 139
  },
  "hsl": {
    "h": 250.909,
    "s": 24.664,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47984,
    "c": 0.08741,
    "h": 291.1
  },
  "luminance": 0.10584
}

Semantic roles & 50–950 ramp

primary
#5E548B
secondary
#A8AE8D
accent
#C167B1
background
#F8F8FA
surface
#F0EFF4
border
#CBCACE
text
#0C0A10
muted
#7D7C7F

Preview Lab

Preview with #5E548B

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

Preview Lab → · Contrast checker → · Palette generator →

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