#4E398A#4E398A

#4E398A is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.2% C 0.129 H 291.7°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#4E398A
RGBrgb(78, 57, 138)
HSLhsl(256, 42%, 38%)
HSVhsv(256, 59%, 54%)
CMYKcmyk(43.5%, 58.7%, 0%, 45.9%)
CIE-LABlab(30.35, 29.70, -42.20)
CIE-LCHlch(30.35, 51.60, 305.14°)
OKLaboklab(41.2% 0.0477 -0.1201)
OKLCHoklch(41.2% 0.129 291.7)
XYZxyz(9.1912, 6.3807, 24.7872)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E398A #758A39
analogous
#394C8A #4E398A #76398A
triadic
#4E398A #8A4E39 #398A4E
tetradic
#4E398A #8A394C #758A39 #398A76
square
#4E398A #8A394C #758A39 #398A76
split-complementary
#4E398A #8A7639 #4C8A39
monochromatic
#1D1533 #36275F #4E398A #674BB5 #8B77C7

Accessibility & contrast

On white

9.23
#4E398A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4E398A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E398A
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E398A#FFFFFF#000000##FFFFFF
##4E398A1.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09498D
Deuteranopia (green-blind)
#104688
Tritanopia (blue-blind)
#3D4B5C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e398a;
/* rgb */ color: rgb(78, 57, 138);
/* oklch */ color: oklch(41.2% 0.129 291.7);
Tailwind
colors: {
  custom: {
    50: '#8470ad',
    500: '#4e398a',
    950: '#000000',
  },
}
SCSS
$custom: #4e398a;
$custom-light: #8470ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4e398a",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 138
  },
  "hsl": {
    "h": 255.556,
    "s": 41.538,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41201,
    "c": 0.12928,
    "h": 291.7
  },
  "luminance": 0.06381
}

Semantic roles & 50–950 ramp

primary
#4E398A
secondary
#9FB06F
accent
#D156B1
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E398A

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

Preview Lab → · Contrast checker → · Palette generator →

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