#4E3894#4E3894

#4E3894 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 41.8% C 0.144 H 289.7°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#4E3894
RGBrgb(78, 56, 148)
HSLhsl(254, 45%, 40%)
HSVhsv(254, 62%, 58%)
CMYKcmyk(47.3%, 62.2%, 0%, 42%)
CIE-LABlab(30.84, 33.33, -47.56)
CIE-LCHlch(30.84, 58.08, 305.03°)
OKLaboklab(41.79% 0.0486 -0.1359)
OKLCHoklch(41.79% 0.144 289.7)
XYZxyz(9.8998, 6.5858, 28.7608)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3894 #7E9438
analogous
#385094 #4E3894 #7C3894
triadic
#4E3894 #944E38 #38944E
tetradic
#4E3894 #943850 #7E9438 #38947C
square
#4E3894 #943850 #7E9438 #38947C
split-complementary
#4E3894 #947C38 #509438
monochromatic
#1F163B #372768 #4E3894 #684DBC #8E7ACD

Accessibility & contrast

On white

9.06
#4E3894 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E3894
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3894#FFFFFF#000000##FFFFFF
##4E38941.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A97
Deuteranopia (green-blind)
#004692
Tritanopia (blue-blind)
#384D60
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e3894;
/* rgb */ color: rgb(78, 56, 148);
/* oklch */ color: oklch(41.8% 0.144 289.7);
Tailwind
colors: {
  custom: {
    50: '#8570b4',
    500: '#4e3894',
    950: '#000000',
  },
}
SCSS
$custom: #4e3894;
$custom-light: #8570b4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3894",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 148
  },
  "hsl": {
    "h": 254.348,
    "s": 45.098,
    "l": 40
  },
  "oklch": {
    "l": 0.41792,
    "c": 0.14434,
    "h": 289.7
  },
  "luminance": 0.06586
}

Semantic roles & 50–950 ramp

primary
#4E3894
secondary
#A6B672
accent
#D553B6
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E3894

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

Preview Lab → · Contrast checker → · Palette generator →

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