#4E3798#4E3798

#4E3798 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 41.9% C 0.151 H 289.1°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#4E3798
RGBrgb(78, 55, 152)
HSLhsl(254, 47%, 41%)
HSVhsv(254, 64%, 60%)
CMYKcmyk(48.7%, 63.8%, 0%, 40.4%)
CIE-LABlab(30.92, 35.15, -49.88)
CIE-LCHlch(30.92, 61.02, 305.17°)
OKLaboklab(41.95% 0.0495 -0.1427)
OKLCHoklch(41.95% 0.151 289.1)
XYZxyz(10.1739, 6.6187, 30.4411)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3798 #819837
analogous
#375098 #4E3798 #7E3798
triadic
#4E3798 #984E37 #37984E
tetradic
#4E3798 #983750 #819837 #37987E
square
#4E3798 #983750 #819837 #37987E
split-complementary
#4E3798 #987E37 #509837
monochromatic
#20163E #37276B #4E3798 #684DBF #8E7ACF

Accessibility & contrast

On white

9.04
#4E3798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#4E3798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3798
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3798#FFFFFF#000000##FFFFFF
##4E37981.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#004696
Tritanopia (blue-blind)
#364E62
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e3798;
/* rgb */ color: rgb(78, 55, 152);
/* oklch */ color: oklch(41.9% 0.151 289.1);
Tailwind
colors: {
  custom: {
    50: '#866fb7',
    500: '#4e3798',
    950: '#000000',
  },
}
SCSS
$custom: #4e3798;
$custom-light: #866fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3798",
  "rgb": {
    "r": 78,
    "g": 55,
    "b": 152
  },
  "hsl": {
    "h": 254.227,
    "s": 46.86,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41945,
    "c": 0.15105,
    "h": 289.1
  },
  "luminance": 0.06619
}

Semantic roles & 50–950 ramp

primary
#4E3798
secondary
#A8B873
accent
#D651B7
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E3798

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

Preview Lab → · Contrast checker → · Palette generator →

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