#5E5874#5E5874

#5E5874 is a mid, muted violet. Relative luminance 0.106; OKLCH L 47.7% C 0.045 H 294.5°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#5E5874
RGBrgb(94, 88, 116)
HSLhsl(253, 14%, 40%)
HSVhsv(253, 24%, 45%)
CMYKcmyk(19%, 24.1%, 0%, 54.5%)
CIE-LABlab(38.93, 8.77, -15.01)
CIE-LCHlch(38.93, 17.38, 300.30°)
OKLaboklab(47.69% 0.0187 -0.0411)
OKLCHoklch(47.69% 0.045 294.5)
XYZxyz(11.2575, 10.6200, 17.9764)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E5874 #6E7458
analogous
#586074 #5E5874 #6C5874
triadic
#5E5874 #745E58 #58745E
tetradic
#5E5874 #745860 #6E7458 #58746C
square
#5E5874 #745860 #6E7458 #58746C
split-complementary
#5E5874 #746C58 #607458
monochromatic
#26232E #423E51 #5E5874 #7B7495 #9C97B0

Accessibility & contrast

On white

6.72
#5E5874 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5E5874
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E5874#FFFFFF#000000##FFFFFF
##5E58741.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#525C75
Deuteranopia (green-blind)
#525B73
Tritanopia (blue-blind)
#5A5C62
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5e5874;
/* rgb */ color: rgb(94, 88, 116);
/* oklch */ color: oklch(47.7% 0.045 294.5);
Tailwind
colors: {
  custom: {
    50: '#8c879c',
    500: '#5e5874',
    950: '#000000',
  },
}
SCSS
$custom: #5e5874;
$custom-light: #8c879c;
$custom-dark: #000000;
JSON
{
  "hex": "#5e5874",
  "rgb": {
    "r": 94,
    "g": 88,
    "b": 116
  },
  "hsl": {
    "h": 252.857,
    "s": 13.725,
    "l": 40
  },
  "oklch": {
    "l": 0.47689,
    "c": 0.0451,
    "h": 294.5
  },
  "luminance": 0.1062
}

Semantic roles & 50–950 ramp

primary
#5E5874
secondary
#9A9E8A
accent
#B771A8
background
#F8F8F9
surface
#F0EFF2
border
#CBCACC
text
#0C0B0E
muted
#7D7C7E

Preview Lab

Preview with #5E5874

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

Preview Lab → · Contrast checker → · Palette generator →

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