#4E3897#4E3897

#4E3897 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.0% C 0.148 H 289.1°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#4E3897
RGBrgb(78, 56, 151)
HSLhsl(254, 46%, 41%)
HSVhsv(254, 63%, 59%)
CMYKcmyk(48.3%, 62.9%, 0%, 40.8%)
CIE-LABlab(31.07, 34.25, -49.02)
CIE-LCHlch(31.07, 59.80, 304.94°)
OKLaboklab(42.03% 0.0484 -0.1402)
OKLCHoklch(42.03% 0.148 289.1)
XYZxyz(10.1404, 6.6820, 30.0276)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3897 #819738
analogous
#385197 #4E3897 #7D3897
triadic
#4E3897 #974E38 #38974E
tetradic
#4E3897 #973851 #819738 #38977D
square
#4E3897 #973851 #819738 #38977D
split-complementary
#4E3897 #977D38 #519738
monochromatic
#20173E #37276A #4E3897 #684FBE #8E7BCE

Accessibility & contrast

On white

8.99
#4E3897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E3897
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3897#FFFFFF#000000##FFFFFF
##4E38971.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e3897;
/* rgb */ color: rgb(78, 56, 151);
/* oklch */ color: oklch(42.0% 0.148 289.1);
Tailwind
colors: {
  custom: {
    50: '#8670b6',
    500: '#4e3897',
    950: '#000000',
  },
}
SCSS
$custom: #4e3897;
$custom-light: #8670b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3897",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 151
  },
  "hsl": {
    "h": 253.895,
    "s": 45.894,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4203,
    "c": 0.14834,
    "h": 289.1
  },
  "luminance": 0.06682
}

Semantic roles & 50–950 ramp

primary
#4E3897
secondary
#A8B773
accent
#D652B7
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E3897

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

Preview Lab → · Contrast checker → · Palette generator →

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