#4E398D#4E398D

#4E398D is a dark, vivid violet. Relative luminance 0.065; OKLCH L 41.4% C 0.133 H 290.9°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#4E398D
RGBrgb(78, 57, 141)
HSLhsl(255, 42%, 39%)
HSVhsv(255, 60%, 55%)
CMYKcmyk(44.7%, 59.6%, 0%, 44.7%)
CIE-LABlab(30.57, 30.60, -43.71)
CIE-LCHlch(30.57, 53.36, 305.00°)
OKLaboklab(41.43% 0.0477 -0.1246)
OKLCHoklch(41.43% 0.133 290.9)
XYZxyz(9.4114, 6.4687, 25.9469)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E398D #788D39
analogous
#394E8D #4E398D #78398D
triadic
#4E398D #8D4E39 #398D4E
tetradic
#4E398D #8D394E #788D39 #398D78
square
#4E398D #8D394E #788D39 #398D78
split-complementary
#4E398D #8D7839 #4E8D39
monochromatic
#1E1636 #362761 #4E398D #674CB7 #8C78C8

Accessibility & contrast

On white

9.16
#4E398D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4E398D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E398D
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E398D#FFFFFF#000000##FFFFFF
##4E398D1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004990
Deuteranopia (green-blind)
#08468B
Tritanopia (blue-blind)
#3C4C5D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e398d;
/* rgb */ color: rgb(78, 57, 141);
/* oklch */ color: oklch(41.4% 0.133 290.9);
Tailwind
colors: {
  custom: {
    50: '#8470af',
    500: '#4e398d',
    950: '#000000',
  },
}
SCSS
$custom: #4e398d;
$custom-light: #8470af;
$custom-dark: #000000;
JSON
{
  "hex": "#4e398d",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 255,
    "s": 42.424,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41425,
    "c": 0.13339,
    "h": 290.9
  },
  "luminance": 0.06469
}

Semantic roles & 50–950 ramp

primary
#4E398D
secondary
#A1B270
accent
#D256B3
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E398D

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

Preview Lab → · Contrast checker → · Palette generator →

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