#4E3992#4E3992

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

Color values

HEX#4E3992
RGBrgb(78, 57, 146)
HSLhsl(254, 44%, 40%)
HSVhsv(254, 61%, 57%)
CMYKcmyk(46.6%, 61%, 0%, 42.7%)
CIE-LABlab(30.93, 32.12, -46.20)
CIE-LCHlch(30.93, 56.27, 304.81°)
OKLaboklab(41.81% 0.0476 -0.1319)
OKLCHoklch(41.81% 0.14 289.8)
XYZxyz(9.7919, 6.6209, 27.9506)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3992 #7D9239
analogous
#395192 #4E3992 #7A3992
triadic
#4E3992 #924E39 #39924E
tetradic
#4E3992 #923951 #7D9239 #39927A
square
#4E3992 #923951 #7D9239 #39927A
split-complementary
#4E3992 #927A39 #519239
monochromatic
#1F173A #362866 #4E3992 #684EBA #8D7ACB

Accessibility & contrast

On white

9.04
#4E3992 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E3992
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3992#FFFFFF#000000##FFFFFF
##4E39921.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A95
Deuteranopia (green-blind)
#004790
Tritanopia (blue-blind)
#394D60
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e3992;
/* rgb */ color: rgb(78, 57, 146);
/* oklch */ color: oklch(41.8% 0.140 289.8);
Tailwind
colors: {
  custom: {
    50: '#8570b3',
    500: '#4e3992',
    950: '#000000',
  },
}
SCSS
$custom: #4e3992;
$custom-light: #8570b3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3992",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 146
  },
  "hsl": {
    "h": 254.157,
    "s": 43.842,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41806,
    "c": 0.14021,
    "h": 289.8
  },
  "luminance": 0.06621
}

Semantic roles & 50–950 ramp

primary
#4E3992
secondary
#A5B472
accent
#D454B6
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #4E3992

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

Preview Lab → · Contrast checker → · Palette generator →

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