#4E3899#4E3899

#4E3899 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.2% C 0.151 H 288.7°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#4E3899
RGBrgb(78, 56, 153)
HSLhsl(254, 46%, 41%)
HSVhsv(254, 63%, 60%)
CMYKcmyk(49%, 63.4%, 0%, 40%)
CIE-LABlab(31.23, 34.86, -49.99)
CIE-LCHlch(31.23, 60.95, 304.88°)
OKLaboklab(42.19% 0.0483 -0.1431)
OKLCHoklch(42.19% 0.151 288.7)
XYZxyz(10.3042, 6.7475, 30.8903)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3899 #839938
analogous
#385299 #4E3899 #7E3899
triadic
#4E3899 #994E38 #38994E
tetradic
#4E3899 #993852 #839938 #38997E
square
#4E3899 #993852 #839938 #38997E
split-complementary
#4E3899 #997E38 #529938
monochromatic
#20173F #37286C #4E3899 #694FBF #8F7CCF

Accessibility & contrast

On white

8.94
#4E3899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#4E3899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3899
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3899#FFFFFF#000000##FFFFFF
##4E38991.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e3899;
/* rgb */ color: rgb(78, 56, 153);
/* oklch */ color: oklch(42.2% 0.151 288.7);
Tailwind
colors: {
  custom: {
    50: '#8670b8',
    500: '#4e3899',
    950: '#000000',
  },
}
SCSS
$custom: #4e3899;
$custom-light: #8670b8;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3899",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 153
  },
  "hsl": {
    "h": 253.608,
    "s": 46.411,
    "l": 40.98
  },
  "oklch": {
    "l": 0.4219,
    "c": 0.151,
    "h": 288.7
  },
  "luminance": 0.06748
}

Semantic roles & 50–950 ramp

primary
#4E3899
secondary
#A9B874
accent
#D652B8
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E3899

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

Preview Lab → · Contrast checker → · Palette generator →

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