#4E3989#4E3989

#4E3989 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.1% C 0.128 H 291.9°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#4E3989
RGBrgb(78, 57, 137)
HSLhsl(256, 41%, 38%)
HSVhsv(256, 58%, 54%)
CMYKcmyk(43.1%, 58.4%, 0%, 46.3%)
CIE-LABlab(30.28, 29.40, -41.69)
CIE-LCHlch(30.28, 51.02, 305.19°)
OKLaboklab(41.13% 0.0477 -0.1187)
OKLCHoklch(41.13% 0.128 291.9)
XYZxyz(9.1191, 6.3518, 24.4076)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3989 #748939
analogous
#394C89 #4E3989 #763989
triadic
#4E3989 #894E39 #39894E
tetradic
#4E3989 #89394C #748939 #398976
square
#4E3989 #89394C #748939 #398976
split-complementary
#4E3989 #897639 #4C8939
monochromatic
#1D1533 #35275E #4E3989 #674BB4 #8B76C6

Accessibility & contrast

On white

9.25
#4E3989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4E3989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3989
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3989#FFFFFF#000000##FFFFFF
##4E39891.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e3989;
/* rgb */ color: rgb(78, 57, 137);
/* oklch */ color: oklch(41.1% 0.128 291.9);
Tailwind
colors: {
  custom: {
    50: '#8470ac',
    500: '#4e3989',
    950: '#000000',
  },
}
SCSS
$custom: #4e3989;
$custom-light: #8470ac;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3989",
  "rgb": {
    "r": 78,
    "g": 57,
    "b": 137
  },
  "hsl": {
    "h": 255.75,
    "s": 41.237,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41127,
    "c": 0.12789,
    "h": 291.9
  },
  "luminance": 0.06352
}

Semantic roles & 50–950 ramp

primary
#4E3989
secondary
#9EAF6F
accent
#D157B1
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E3989

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

Preview Lab → · Contrast checker → · Palette generator →

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