#4E3792#4E3792

#4E3792 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.5% C 0.143 H 290.4°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#4E3792
RGBrgb(78, 55, 146)
HSLhsl(255, 45%, 39%)
HSVhsv(255, 62%, 57%)
CMYKcmyk(46.6%, 62.3%, 0%, 42.7%)
CIE-LABlab(30.47, 33.34, -46.95)
CIE-LCHlch(30.47, 57.58, 305.38°)
OKLaboklab(41.47% 0.0499 -0.1341)
OKLCHoklch(41.47% 0.143 290.4)
XYZxyz(9.6949, 6.4271, 27.9183)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3792 #7B9237
analogous
#374E92 #4E3792 #7C3792
triadic
#4E3792 #924E37 #37924E
tetradic
#4E3792 #92374E #7B9237 #37927C
square
#4E3792 #92374E #7B9237 #37927C
split-complementary
#4E3792 #927C37 #4E9237
monochromatic
#1F1639 #362666 #4E3792 #674BBB #8D77CC

Accessibility & contrast

On white

9.19
#4E3792 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4E3792 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3792
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3792#FFFFFF#000000##FFFFFF
##4E37921.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004995
Deuteranopia (green-blind)
#004690
Tritanopia (blue-blind)
#394C5F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e3792;
/* rgb */ color: rgb(78, 55, 146);
/* oklch */ color: oklch(41.5% 0.143 290.4);
Tailwind
colors: {
  custom: {
    50: '#856fb3',
    500: '#4e3792',
    950: '#000000',
  },
}
SCSS
$custom: #4e3792;
$custom-light: #856fb3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3792",
  "rgb": {
    "r": 78,
    "g": 55,
    "b": 146
  },
  "hsl": {
    "h": 255.165,
    "s": 45.274,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41468,
    "c": 0.14309,
    "h": 290.4
  },
  "luminance": 0.06427
}

Semantic roles & 50–950 ramp

primary
#4E3792
secondary
#A3B570
accent
#D553B4
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #4E3792

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

Preview Lab → · Contrast checker → · Palette generator →

#4E3792 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva