#4E3886#4E3886

#4E3886 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 40.7% C 0.125 H 293.0°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#4E3886
RGBrgb(78, 56, 134)
HSLhsl(257, 41%, 37%)
HSVhsv(257, 58%, 53%)
CMYKcmyk(41.8%, 58.2%, 0%, 47.5%)
CIE-LABlab(29.83, 29.13, -40.56)
CIE-LCHlch(29.83, 49.93, 305.69°)
OKLaboklab(40.73% 0.049 -0.1153)
OKLCHoklch(40.73% 0.125 293)
XYZxyz(8.8580, 6.1690, 23.2737)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3886 #708638
analogous
#384986 #4E3886 #753886
triadic
#4E3886 #864E38 #38864E
tetradic
#4E3886 #863849 #708638 #388675
square
#4E3886 #863849 #708638 #388675
split-complementary
#4E3886 #867538 #498638
monochromatic
#1C1430 #35265B #4E3886 #674AB1 #8B74C5

Accessibility & contrast

On white

9.40
#4E3886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E3886
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3886#FFFFFF#000000##FFFFFF
##4E38861.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4789
Deuteranopia (green-blind)
#154584
Tritanopia (blue-blind)
#3F4959
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e3886;
/* rgb */ color: rgb(78, 56, 134);
/* oklch */ color: oklch(40.7% 0.125 293.0);
Tailwind
colors: {
  custom: {
    50: '#836faa',
    500: '#4e3886',
    950: '#000000',
  },
}
SCSS
$custom: #4e3886;
$custom-light: #836faa;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3886",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 134
  },
  "hsl": {
    "h": 256.923,
    "s": 41.053,
    "l": 37.255
  },
  "oklch": {
    "l": 0.4073,
    "c": 0.12528,
    "h": 293
  },
  "luminance": 0.06169
}

Semantic roles & 50–950 ramp

primary
#4E3886
secondary
#9BAE6C
accent
#D157AE
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E3886

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

Preview Lab → · Contrast checker → · Palette generator →

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