#4E408A#4E408A

#4E408A is a dark, moderate violet. Relative luminance 0.071; OKLCH L 42.5% C 0.118 H 289.0°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#4E408A
RGBrgb(78, 64, 138)
HSLhsl(251, 37%, 40%)
HSVhsv(251, 54%, 54%)
CMYKcmyk(43.5%, 53.6%, 0%, 45.9%)
CIE-LABlab(32.08, 25.29, -39.42)
CIE-LCHlch(32.08, 46.84, 302.68°)
OKLaboklab(42.48% 0.0387 -0.112)
OKLCHoklch(42.48% 0.118 289)
XYZxyz(9.5614, 7.1211, 24.9106)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E408A #7C8A40
analogous
#40578A #4E408A #73408A
triadic
#4E408A #8A4E40 #408A4E
tetradic
#4E408A #8A4057 #7C8A40 #408A73
square
#4E408A #8A4057 #7C8A40 #408A73
split-complementary
#4E408A #8A7340 #578A40
monochromatic
#1F1936 #362D60 #4E408A #6756B1 #8D80C4

Accessibility & contrast

On white

8.66
#4E408A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#4E408A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E408A
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E408A#FFFFFF#000000##FFFFFF
##4E408A1.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4D8D
Deuteranopia (green-blind)
#204A88
Tritanopia (blue-blind)
#3D505E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4e408a;
/* rgb */ color: rgb(78, 64, 138);
/* oklch */ color: oklch(42.5% 0.118 289.0);
Tailwind
colors: {
  custom: {
    50: '#8375ad',
    500: '#4e408a',
    950: '#000000',
  },
}
SCSS
$custom: #4e408a;
$custom-light: #8375ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4e408a",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 138
  },
  "hsl": {
    "h": 251.351,
    "s": 36.634,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42481,
    "c": 0.11846,
    "h": 289
  },
  "luminance": 0.07121
}

Semantic roles & 50–950 ramp

primary
#4E408A
secondary
#A4AF77
accent
#CD5BB7
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #4E408A

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

Preview Lab → · Contrast checker → · Palette generator →

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