#5E4E9F#5E4E9F

#5E4E9F is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.0% C 0.126 H 289.9°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#5E4E9F
RGBrgb(94, 78, 159)
HSLhsl(252, 34%, 46%)
HSVhsv(252, 51%, 62%)
CMYKcmyk(40.9%, 50.9%, 0%, 37.6%)
CIE-LABlab(38.43, 26.88, -41.94)
CIE-LCHlch(38.43, 49.81, 302.66°)
OKLaboklab(48.01% 0.043 -0.1188)
OKLCHoklch(48.01% 0.126 289.9)
XYZxyz(13.5968, 10.3313, 34.0719)
Luminance0.1033 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E4E9F #8F9F4E
analogous
#4E679F #5E4E9F #874E9F
triadic
#5E4E9F #9F5E4E #4E9F5E
tetradic
#5E4E9F #9F4E67 #8F9F4E #4E9F87
square
#5E4E9F #9F4E67 #8F9F4E #4E9F87
split-complementary
#5E4E9F #9F874E #679F4E
monochromatic
#2D264D #463A76 #5E4E9F #7F71B9 #A49ACD

Accessibility & contrast

On white

6.85
#5E4E9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#5E4E9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E4E9F
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E4E9F#FFFFFF#000000##FFFFFF
##5E4E9F1.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5CA2
Deuteranopia (green-blind)
#2E599D
Tritanopia (blue-blind)
#4C5F6F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5e4e9f;
/* rgb */ color: rgb(94, 78, 159);
/* oklch */ color: oklch(48.0% 0.126 289.9);
Tailwind
colors: {
  custom: {
    50: '#8f80bc',
    500: '#5e4e9f',
    950: '#000000',
  },
}
SCSS
$custom: #5e4e9f;
$custom-light: #8f80bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e4e9f",
  "rgb": {
    "r": 94,
    "g": 78,
    "b": 159
  },
  "hsl": {
    "h": 251.852,
    "s": 34.177,
    "l": 46.471
  },
  "oklch": {
    "l": 0.48014,
    "c": 0.12636,
    "h": 289.9
  },
  "luminance": 0.10332
}

Semantic roles & 50–950 ramp

primary
#5E4E9F
secondary
#B2BA8F
accent
#CA5EB5
background
#F9F7FB
surface
#F1EEF6
border
#CBC9D0
text
#0D0A12
muted
#7E7C81

Preview Lab

Preview with #5E4E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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