#4E408E#4E408E

#4E408E is a dark, vivid violet. Relative luminance 0.072; OKLCH L 42.8% C 0.124 H 288.2°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#4E408E
RGBrgb(78, 64, 142)
HSLhsl(251, 38%, 40%)
HSVhsv(251, 55%, 56%)
CMYKcmyk(45.1%, 54.9%, 0%, 44.3%)
CIE-LABlab(32.35, 26.52, -41.46)
CIE-LCHlch(32.35, 49.22, 302.61°)
OKLaboklab(42.76% 0.0389 -0.1179)
OKLCHoklch(42.76% 0.124 288.2)
XYZxyz(9.8564, 7.2391, 26.4639)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E408E #808E40
analogous
#40598E #4E408E #75408E
triadic
#4E408E #8E4E40 #408E4E
tetradic
#4E408E #8E4059 #808E40 #408E75
square
#4E408E #8E4059 #808E40 #408E75
split-complementary
#4E408E #8E7540 #598E40
monochromatic
#201A3A #372D64 #4E408E #6858B4 #8E82C7

Accessibility & contrast

On white

8.58
#4E408E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E408E
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E408E#FFFFFF#000000##FFFFFF
##4E408E1.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4E91
Deuteranopia (green-blind)
#1A4A8C
Tritanopia (blue-blind)
#3B5160
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4e408e;
/* rgb */ color: rgb(78, 64, 142);
/* oklch */ color: oklch(42.8% 0.124 288.2);
Tailwind
colors: {
  custom: {
    50: '#8475af',
    500: '#4e408e',
    950: '#000000',
  },
}
SCSS
$custom: #4e408e;
$custom-light: #8475af;
$custom-dark: #000000;
JSON
{
  "hex": "#4e408e",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 142
  },
  "hsl": {
    "h": 250.769,
    "s": 37.864,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42763,
    "c": 0.1242,
    "h": 288.2
  },
  "luminance": 0.07239
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E408E

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

Preview Lab → · Contrast checker → · Palette generator →

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