#4E408F#4E408F

#4E408F is a dark, vivid violet. Relative luminance 0.073; OKLCH L 42.8% C 0.126 H 288.1°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#4E408F
RGBrgb(78, 64, 143)
HSLhsl(251, 38%, 41%)
HSVhsv(251, 55%, 56%)
CMYKcmyk(45.5%, 55.2%, 0%, 43.9%)
CIE-LABlab(32.41, 26.83, -41.97)
CIE-LCHlch(32.41, 49.81, 302.59°)
OKLaboklab(42.83% 0.0389 -0.1194)
OKLCHoklch(42.83% 0.126 288.1)
XYZxyz(9.9318, 7.2693, 26.8611)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E408F #818F40
analogous
#40598F #4E408F #75408F
triadic
#4E408F #8F4E40 #408F4E
tetradic
#4E408F #8F4059 #818F40 #408F75
square
#4E408F #8F4059 #818F40 #408F75
split-complementary
#4E408F #8F7540 #598F40
monochromatic
#201A3A #372D65 #4E408F #6858B4 #8E82C7

Accessibility & contrast

On white

8.56
#4E408F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#4E408F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E408F
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E408F#FFFFFF#000000##FFFFFF
##4E408F1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184E92
Deuteranopia (green-blind)
#194A8D
Tritanopia (blue-blind)
#3A5161
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4e408f;
/* rgb */ color: rgb(78, 64, 143);
/* oklch */ color: oklch(42.8% 0.126 288.1);
Tailwind
colors: {
  custom: {
    50: '#8475b0',
    500: '#4e408f',
    950: '#000000',
  },
}
SCSS
$custom: #4e408f;
$custom-light: #8475b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e408f",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 143
  },
  "hsl": {
    "h": 250.633,
    "s": 38.164,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42834,
    "c": 0.12561,
    "h": 288.1
  },
  "luminance": 0.0727
}

Semantic roles & 50–950 ramp

primary
#4E408F
secondary
#A8B279
accent
#CE5AB9
background
#F8F7FA
surface
#EFEDF5
border
#CAC8CF
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #4E408F

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

Preview Lab → · Contrast checker → · Palette generator →

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