#4E408D#4E408D

#4E408D is a dark, vivid violet. Relative luminance 0.072; OKLCH L 42.7% C 0.123 H 288.4°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#4E408D
RGBrgb(78, 64, 141)
HSLhsl(251, 38%, 40%)
HSVhsv(251, 55%, 55%)
CMYKcmyk(44.7%, 54.6%, 0%, 44.7%)
CIE-LABlab(32.28, 26.21, -40.95)
CIE-LCHlch(32.28, 48.62, 302.62°)
OKLaboklab(42.69% 0.0388 -0.1165)
OKLCHoklch(42.69% 0.123 288.4)
XYZxyz(9.7816, 7.2092, 26.0703)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E408D #7F8D40
analogous
#40588D #4E408D #74408D
triadic
#4E408D #8D4E40 #408D4E
tetradic
#4E408D #8D4058 #7F8D40 #408D74
square
#4E408D #8D4058 #7F8D40 #408D74
split-complementary
#4E408D #8D7440 #588D40
monochromatic
#1F1A39 #372D63 #4E408D #6857B3 #8E81C6

Accessibility & contrast

On white

8.60
#4E408D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#4E408D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E408D
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E408D#FFFFFF#000000##FFFFFF
##4E408D1.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4E90
Deuteranopia (green-blind)
#1C4A8B
Tritanopia (blue-blind)
#3B5060
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4e408d;
/* rgb */ color: rgb(78, 64, 141);
/* oklch */ color: oklch(42.7% 0.123 288.4);
Tailwind
colors: {
  custom: {
    50: '#8475af',
    500: '#4e408d',
    950: '#000000',
  },
}
SCSS
$custom: #4e408d;
$custom-light: #8475af;
$custom-dark: #000000;
JSON
{
  "hex": "#4e408d",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 141
  },
  "hsl": {
    "h": 250.909,
    "s": 37.561,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42692,
    "c": 0.12277,
    "h": 288.4
  },
  "luminance": 0.0721
}

Semantic roles & 50–950 ramp

primary
#4E408D
secondary
#A6B078
accent
#CE5AB9
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #4E408D

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

Preview Lab → · Contrast checker → · Palette generator →

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