#4E3A97#4E3A97

#4E3A97 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.4% C 0.146 H 288.5°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#4E3A97
RGBrgb(78, 58, 151)
HSLhsl(253, 44%, 41%)
HSVhsv(253, 62%, 59%)
CMYKcmyk(48.3%, 61.6%, 0%, 40.8%)
CIE-LABlab(31.53, 33.03, -48.28)
CIE-LCHlch(31.53, 58.50, 304.38°)
OKLaboklab(42.37% 0.0462 -0.138)
OKLCHoklch(42.37% 0.146 288.5)
XYZxyz(10.2392, 6.8798, 30.0606)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3A97 #83973A
analogous
#3A5497 #4E3A97 #7C3A97
triadic
#4E3A97 #974E3A #3A974E
tetradic
#4E3A97 #973A54 #83973A #3A977C
square
#4E3A97 #973A54 #83973A #3A977C
split-complementary
#4E3A97 #977C3A #54973A
monochromatic
#20183F #37296B #4E3A97 #6952BC #8F7ECD

Accessibility & contrast

On white

8.84
#4E3A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#4E3A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3A97
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3A97#FFFFFF#000000##FFFFFF
##4E3A971.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#004895
Tritanopia (blue-blind)
#364F63
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e3a97;
/* rgb */ color: rgb(78, 58, 151);
/* oklch */ color: oklch(42.4% 0.146 288.5);
Tailwind
colors: {
  custom: {
    50: '#8671b6',
    500: '#4e3a97',
    950: '#000000',
  },
}
SCSS
$custom: #4e3a97;
$custom-light: #8671b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3a97",
  "rgb": {
    "r": 78,
    "g": 58,
    "b": 151
  },
  "hsl": {
    "h": 252.903,
    "s": 44.498,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42366,
    "c": 0.14553,
    "h": 288.5
  },
  "luminance": 0.0688
}

Semantic roles & 50–950 ramp

primary
#4E3A97
secondary
#A9B776
accent
#D454B9
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0811
muted
#7D7B80

Preview Lab

Preview with #4E3A97

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

Preview Lab → · Contrast checker → · Palette generator →

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