#4E3898#4E3898

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

Color values

HEX#4E3898
RGBrgb(78, 56, 152)
HSLhsl(254, 46%, 41%)
HSVhsv(254, 63%, 60%)
CMYKcmyk(48.7%, 63.2%, 0%, 40.4%)
CIE-LABlab(31.15, 34.55, -49.51)
CIE-LCHlch(31.15, 60.37, 304.91°)
OKLaboklab(42.11% 0.0484 -0.1416)
OKLCHoklch(42.11% 0.15 288.9)
XYZxyz(10.2219, 6.7146, 30.4571)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3898 #829838
analogous
#385298 #4E3898 #7E3898
triadic
#4E3898 #984E38 #38984E
tetradic
#4E3898 #983852 #829838 #38987E
square
#4E3898 #983852 #829838 #38987E
split-complementary
#4E3898 #987E38 #529838
monochromatic
#20173F #37286B #4E3898 #684FBE #8F7CCF

Accessibility & contrast

On white

8.96
#4E3898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#4E3898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3898
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3898#FFFFFF#000000##FFFFFF
##4E38981.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e3898;
/* rgb */ color: rgb(78, 56, 152);
/* oklch */ color: oklch(42.1% 0.150 288.9);
Tailwind
colors: {
  custom: {
    50: '#8670b7',
    500: '#4e3898',
    950: '#000000',
  },
}
SCSS
$custom: #4e3898;
$custom-light: #8670b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3898",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 152
  },
  "hsl": {
    "h": 253.75,
    "s": 46.154,
    "l": 40.784
  },
  "oklch": {
    "l": 0.4211,
    "c": 0.14967,
    "h": 288.9
  },
  "luminance": 0.06715
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E3898

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

Preview Lab → · Contrast checker → · Palette generator →

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