#4E3789#4E3789

#4E3789 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 40.8% C 0.131 H 292.6°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#4E3789
RGBrgb(78, 55, 137)
HSLhsl(257, 43%, 38%)
HSVhsv(257, 60%, 54%)
CMYKcmyk(43.1%, 59.9%, 0%, 46.3%)
CIE-LABlab(29.81, 30.64, -42.46)
CIE-LCHlch(29.81, 52.36, 305.81°)
OKLaboklab(40.78% 0.0502 -0.1209)
OKLCHoklch(40.78% 0.131 292.6)
XYZxyz(9.0222, 6.1580, 24.3753)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3789 #728937
analogous
#374989 #4E3789 #773789
triadic
#4E3789 #894E37 #37894E
tetradic
#4E3789 #893749 #728937 #378977
square
#4E3789 #893749 #728937 #378977
split-complementary
#4E3789 #897737 #498937
monochromatic
#1C1432 #35255D #4E3789 #6749B5 #8B73C7

Accessibility & contrast

On white

9.41
#4E3789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4E3789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3789
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3789#FFFFFF#000000##FFFFFF
##4E37891.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02478C
Deuteranopia (green-blind)
#0C4587
Tritanopia (blue-blind)
#3E495A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e3789;
/* rgb */ color: rgb(78, 55, 137);
/* oklch */ color: oklch(40.8% 0.131 292.6);
Tailwind
colors: {
  custom: {
    50: '#846fac',
    500: '#4e3789',
    950: '#000000',
  },
}
SCSS
$custom: #4e3789;
$custom-light: #846fac;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3789",
  "rgb": {
    "r": 78,
    "g": 55,
    "b": 137
  },
  "hsl": {
    "h": 256.829,
    "s": 42.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40777,
    "c": 0.13093,
    "h": 292.6
  },
  "luminance": 0.06158
}

Semantic roles & 50–950 ramp

primary
#4E3789
secondary
#9DB06C
accent
#D255AF
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E3789

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

Preview Lab → · Contrast checker → · Palette generator →

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