#4E3998#4E3998

#4E3998 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.3% C 0.148 H 288.6°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#4E3998
RGBrgb(78, 57, 152)
HSLhsl(253, 45%, 41%)
HSVhsv(253, 63%, 60%)
CMYKcmyk(48.7%, 62.5%, 0%, 40.4%)
CIE-LABlab(31.38, 33.95, -49.14)
CIE-LCHlch(31.38, 59.73, 304.64°)
OKLaboklab(42.28% 0.0472 -0.1405)
OKLCHoklch(42.28% 0.148 288.6)
XYZxyz(10.2709, 6.8125, 30.4734)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3998 #839839
analogous
#395398 #4E3998 #7D3998
triadic
#4E3998 #984E39 #39984E
tetradic
#4E3998 #983953 #839839 #39987D
square
#4E3998 #983953 #839839 #39987D
split-complementary
#4E3998 #987D39 #539839
monochromatic
#20183F #37286B #4E3998 #6951BE #8F7DCE

Accessibility & contrast

On white

8.89
#4E3998 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#4E3998 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3998
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3998#FFFFFF#000000##FFFFFF
##4E39981.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9B
Deuteranopia (green-blind)
#004796
Tritanopia (blue-blind)
#364F63
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e3998;
/* rgb */ color: rgb(78, 57, 152);
/* oklch */ color: oklch(42.3% 0.148 288.6);
Tailwind
colors: {
  custom: {
    50: '#8670b7',
    500: '#4e3998',
    950: '#000000',
  },
}
SCSS
$custom: #4e3998;
$custom-light: #8670b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3998",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 152
  },
  "hsl": {
    "h": 253.263,
    "s": 45.455,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42276,
    "c": 0.14828,
    "h": 288.6
  },
  "luminance": 0.06813
}

Semantic roles & 50–950 ramp

primary
#4E3998
secondary
#A9B875
accent
#D553B8
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E3998

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

Preview Lab → · Contrast checker → · Palette generator →

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