#4E3799#4E3799

#4E3799 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.0% C 0.152 H 288.9°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#4E3799
RGBrgb(78, 55, 153)
HSLhsl(254, 47%, 41%)
HSVhsv(254, 64%, 60%)
CMYKcmyk(49%, 64.1%, 0%, 40%)
CIE-LABlab(31.00, 35.45, -50.36)
CIE-LCHlch(31.00, 61.59, 305.15°)
OKLaboklab(42.03% 0.0494 -0.1441)
OKLCHoklch(42.03% 0.152 288.9)
XYZxyz(10.2562, 6.6516, 30.8743)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3799 #829937
analogous
#375199 #4E3799 #7F3799
triadic
#4E3799 #994E37 #37994E
tetradic
#4E3799 #993751 #829937 #37997F
square
#4E3799 #993751 #829937 #37997F
split-complementary
#4E3799 #997F37 #519937
monochromatic
#20173F #37276C #4E3799 #684EBF #8F7BD0

Accessibility & contrast

On white

9.01
#4E3799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#4E3799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3799
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3799#FFFFFF#000000##FFFFFF
##4E37991.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9C
Deuteranopia (green-blind)
#004797
Tritanopia (blue-blind)
#354E63
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e3799;
/* rgb */ color: rgb(78, 55, 153);
/* oklch */ color: oklch(42.0% 0.152 288.9);
Tailwind
colors: {
  custom: {
    50: '#866fb8',
    500: '#4e3799',
    950: '#000000',
  },
}
SCSS
$custom: #4e3799;
$custom-light: #866fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3799",
  "rgb": {
    "r": 78,
    "g": 55,
    "b": 153
  },
  "hsl": {
    "h": 254.082,
    "s": 47.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42026,
    "c": 0.15237,
    "h": 288.9
  },
  "luminance": 0.06652
}

Semantic roles & 50–950 ramp

primary
#4E3799
secondary
#A8B973
accent
#D751B7
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E3799

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

Preview Lab → · Contrast checker → · Palette generator →

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