#5E478D#5E478D

#5E478D is a mid, moderate violet. Relative luminance 0.088; OKLCH L 45.6% C 0.112 H 296.9°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#5E478D
RGBrgb(94, 71, 141)
HSLhsl(260, 33%, 42%)
HSVhsv(260, 50%, 55%)
CMYKcmyk(33.3%, 49.6%, 0%, 44.7%)
CIE-LABlab(35.61, 26.08, -35.53)
CIE-LCHlch(35.61, 44.08, 306.28°)
OKLaboklab(45.56% 0.0507 -0.1001)
OKLCHoklch(45.56% 0.112 296.9)
XYZxyz(11.6759, 8.8091, 26.2793)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E478D #768D47
analogous
#47538D #5E478D #81478D
triadic
#5E478D #8D5E47 #478D5E
tetradic
#5E478D #8D4753 #768D47 #478D81
square
#5E478D #8D4753 #768D47 #478D81
split-complementary
#5E478D #8D8147 #538D47
monochromatic
#281E3C #433364 #5E478D #7B62B0 #9D8AC4

Accessibility & contrast

On white

7.60
#5E478D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5E478D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E478D
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E478D#FFFFFF#000000##FFFFFF
##5E478D1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F548F
Deuteranopia (green-blind)
#34538B
Tritanopia (blue-blind)
#545463
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5e478d;
/* rgb */ color: rgb(94, 71, 141);
/* oklch */ color: oklch(45.6% 0.112 296.9);
Tailwind
colors: {
  custom: {
    50: '#8e7aaf',
    500: '#5e478d',
    950: '#000000',
  },
}
SCSS
$custom: #5e478d;
$custom-light: #8e7aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#5e478d",
  "rgb": {
    "r": 94,
    "g": 71,
    "b": 141
  },
  "hsl": {
    "h": 259.714,
    "s": 33.019,
    "l": 41.569
  },
  "oklch": {
    "l": 0.4556,
    "c": 0.11221,
    "h": 296.9
  },
  "luminance": 0.08809
}

Semantic roles & 50–950 ramp

primary
#5E478D
secondary
#A0B080
accent
#C95FA6
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0C0910
muted
#7D7B7F

Preview Lab

Preview with #5E478D

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

Preview Lab → · Contrast checker → · Palette generator →

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