#4E398B#4E398B

#4E398B is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.3% C 0.131 H 291.4°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#4E398B
RGBrgb(78, 57, 139)
HSLhsl(255, 42%, 38%)
HSVhsv(255, 59%, 55%)
CMYKcmyk(43.9%, 59%, 0%, 45.5%)
CIE-LABlab(30.42, 30.00, -42.70)
CIE-LCHlch(30.42, 52.19, 305.09°)
OKLaboklab(41.28% 0.0477 -0.1216)
OKLCHoklch(41.28% 0.131 291.4)
XYZxyz(9.2639, 6.4098, 25.1702)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E398B #768B39
analogous
#394D8B #4E398B #77398B
triadic
#4E398B #8B4E39 #398B4E
tetradic
#4E398B #8B394D #768B39 #398B77
square
#4E398B #8B394D #768B39 #398B77
split-complementary
#4E398B #8B7739 #4D8B39
monochromatic
#1D1534 #362760 #4E398B #674CB5 #8C77C7

Accessibility & contrast

On white

9.20
#4E398B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E398B
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E398B#FFFFFF#000000##FFFFFF
##4E398B1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06498E
Deuteranopia (green-blind)
#0E4689
Tritanopia (blue-blind)
#3D4B5C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e398b;
/* rgb */ color: rgb(78, 57, 139);
/* oklch */ color: oklch(41.3% 0.131 291.4);
Tailwind
colors: {
  custom: {
    50: '#8470ad',
    500: '#4e398b',
    950: '#000000',
  },
}
SCSS
$custom: #4e398b;
$custom-light: #8470ad;
$custom-dark: #000000;
JSON
{
  "hex": "#4e398b",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 139
  },
  "hsl": {
    "h": 255.366,
    "s": 41.837,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41275,
    "c": 0.13065,
    "h": 291.4
  },
  "luminance": 0.0641
}

Semantic roles & 50–950 ramp

primary
#4E398B
secondary
#A0B06F
accent
#D256B2
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E398B

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

Preview Lab → · Contrast checker → · Palette generator →

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