#4E408B#4E408B

#4E408B is a dark, moderate violet. Relative luminance 0.072; OKLCH L 42.6% C 0.120 H 288.8°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#4E408B
RGBrgb(78, 64, 139)
HSLhsl(251, 37%, 40%)
HSVhsv(251, 54%, 55%)
CMYKcmyk(43.9%, 54%, 0%, 45.5%)
CIE-LABlab(32.15, 25.60, -39.93)
CIE-LCHlch(32.15, 47.44, 302.66°)
OKLaboklab(42.55% 0.0387 -0.1135)
OKLCHoklch(42.55% 0.12 288.8)
XYZxyz(9.6342, 7.1502, 25.2936)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E408B #7D8B40
analogous
#40588B #4E408B #74408B
triadic
#4E408B #8B4E40 #408B4E
tetradic
#4E408B #8B4058 #7D8B40 #408B74
square
#4E408B #8B4058 #7D8B40 #408B74
split-complementary
#4E408B #8B7440 #588B40
monochromatic
#1F1937 #362D61 #4E408B #6857B2 #8D81C5

Accessibility & contrast

On white

8.64
#4E408B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#4E408B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E408B
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E408B#FFFFFF#000000##FFFFFF
##4E408B1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4D8E
Deuteranopia (green-blind)
#1E4A89
Tritanopia (blue-blind)
#3C505F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4e408b;
/* rgb */ color: rgb(78, 64, 139);
/* oklch */ color: oklch(42.6% 0.120 288.8);
Tailwind
colors: {
  custom: {
    50: '#8475ad',
    500: '#4e408b',
    950: '#000000',
  },
}
SCSS
$custom: #4e408b;
$custom-light: #8475ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4e408b",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 139
  },
  "hsl": {
    "h": 251.2,
    "s": 36.946,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42551,
    "c": 0.1199,
    "h": 288.8
  },
  "luminance": 0.07151
}

Semantic roles & 50–950 ramp

primary
#4E408B
secondary
#A5AF78
accent
#CD5BB8
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #4E408B

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

Preview Lab → · Contrast checker → · Palette generator →

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