#5E4792#5E4792

#5E4792 is a mid, moderate violet. Relative luminance 0.090; OKLCH L 45.9% C 0.119 H 295.5°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#5E4792
RGBrgb(94, 71, 146)
HSLhsl(258, 35%, 43%)
HSVhsv(258, 51%, 57%)
CMYKcmyk(35.6%, 51.4%, 0%, 42.7%)
CIE-LABlab(35.91, 27.48, -38.11)
CIE-LCHlch(35.91, 46.98, 305.79°)
OKLaboklab(45.88% 0.0512 -0.1076)
OKLCHoklch(45.88% 0.119 295.5)
XYZxyz(12.0563, 8.9613, 28.2831)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E4792 #7B9247
analogous
#475692 #5E4792 #834792
triadic
#5E4792 #925E47 #47925E
tetradic
#5E4792 #924756 #7B9247 #479283
square
#5E4792 #924756 #7B9247 #479283
split-complementary
#5E4792 #928347 #569247
monochromatic
#291F40 #433369 #5E4792 #7C63B3 #9E8CC7

Accessibility & contrast

On white

7.52
#5E4792 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5E4792 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E4792
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E4792#FFFFFF#000000##FFFFFF
##5E47921.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5595
Deuteranopia (green-blind)
#305390
Tritanopia (blue-blind)
#525665
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5e4792;
/* rgb */ color: rgb(94, 71, 146);
/* oklch */ color: oklch(45.9% 0.119 295.5);
Tailwind
colors: {
  custom: {
    50: '#8e7bb2',
    500: '#5e4792',
    950: '#000000',
  },
}
SCSS
$custom: #5e4792;
$custom-light: #8e7bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e4792",
  "rgb": {
    "r": 94,
    "g": 71,
    "b": 146
  },
  "hsl": {
    "h": 258.4,
    "s": 34.562,
    "l": 42.549
  },
  "oklch": {
    "l": 0.45876,
    "c": 0.1192,
    "h": 295.5
  },
  "luminance": 0.08961
}

Semantic roles & 50–950 ramp

primary
#5E4792
secondary
#A4B382
accent
#CB5DA9
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0D0911
muted
#7D7B80

Preview Lab

Preview with #5E4792

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

Preview Lab → · Contrast checker → · Palette generator →

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