#4E3988#4E3988

#4E3988 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.1% C 0.127 H 292.2°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#4E3988
RGBrgb(78, 57, 136)
HSLhsl(256, 41%, 38%)
HSVhsv(256, 58%, 53%)
CMYKcmyk(42.6%, 58.1%, 0%, 46.7%)
CIE-LABlab(30.21, 29.10, -41.19)
CIE-LCHlch(30.21, 50.43, 305.24°)
OKLaboklab(41.05% 0.0477 -0.1172)
OKLCHoklch(41.05% 0.127 292.2)
XYZxyz(9.0477, 6.3233, 24.0316)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3988 #738839
analogous
#394C88 #4E3988 #753988
triadic
#4E3988 #884E39 #39884E
tetradic
#4E3988 #88394C #738839 #398875
square
#4E3988 #88394C #738839 #398875
split-complementary
#4E3988 #887539 #4C8839
monochromatic
#1D1532 #35275D #4E3988 #674BB3 #8B76C6

Accessibility & contrast

On white

9.27
#4E3988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4E3988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3988
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3988#FFFFFF#000000##FFFFFF
##4E39881.009.272.269.27
#FFFFFF9.271.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E488B
Deuteranopia (green-blind)
#144686
Tritanopia (blue-blind)
#3E4A5B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e3988;
/* rgb */ color: rgb(78, 57, 136);
/* oklch */ color: oklch(41.1% 0.127 292.2);
Tailwind
colors: {
  custom: {
    50: '#8470ab',
    500: '#4e3988',
    950: '#000000',
  },
}
SCSS
$custom: #4e3988;
$custom-light: #8470ab;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3988",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 136
  },
  "hsl": {
    "h": 255.949,
    "s": 40.933,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41054,
    "c": 0.12651,
    "h": 292.2
  },
  "luminance": 0.06324
}

Semantic roles & 50–950 ramp

primary
#4E3988
secondary
#9EAF6E
accent
#D157B0
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E3988

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

Preview Lab → · Contrast checker → · Palette generator →

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