#4E3896#4E3896

#4E3896 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 41.9% C 0.147 H 289.3°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#4E3896
RGBrgb(78, 56, 150)
HSLhsl(254, 46%, 40%)
HSVhsv(254, 63%, 59%)
CMYKcmyk(48%, 62.7%, 0%, 41.2%)
CIE-LABlab(31.00, 33.94, -48.54)
CIE-LCHlch(31.00, 59.23, 304.97°)
OKLaboklab(41.95% 0.0485 -0.1388)
OKLCHoklch(41.95% 0.147 289.3)
XYZxyz(10.0595, 6.6497, 29.6017)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3896 #809638
analogous
#385196 #4E3896 #7D3896
triadic
#4E3896 #964E38 #38964E
tetradic
#4E3896 #963851 #809638 #38967D
square
#4E3896 #963851 #809638 #38967D
split-complementary
#4E3896 #967D38 #519638
monochromatic
#20173D #372769 #4E3896 #684EBD #8E7BCE

Accessibility & contrast

On white

9.01
#4E3896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#4E3896 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3896
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3896#FFFFFF#000000##FFFFFF
##4E38961.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B99
Deuteranopia (green-blind)
#004794
Tritanopia (blue-blind)
#374E61
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e3896;
/* rgb */ color: rgb(78, 56, 150);
/* oklch */ color: oklch(41.9% 0.147 289.3);
Tailwind
colors: {
  custom: {
    50: '#8670b6',
    500: '#4e3896',
    950: '#000000',
  },
}
SCSS
$custom: #4e3896;
$custom-light: #8670b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3896",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 150
  },
  "hsl": {
    "h": 254.043,
    "s": 45.631,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4195,
    "c": 0.14701,
    "h": 289.3
  },
  "luminance": 0.0665
}

Semantic roles & 50–950 ramp

primary
#4E3896
secondary
#A7B773
accent
#D552B7
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E3896

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

Preview Lab → · Contrast checker → · Palette generator →

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