#4E3786#4E3786

#4E3786 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 40.6% C 0.127 H 293.3°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#4E3786
RGBrgb(78, 55, 134)
HSLhsl(257, 42%, 37%)
HSVhsv(257, 59%, 53%)
CMYKcmyk(41.8%, 59%, 0%, 47.5%)
CIE-LABlab(29.60, 29.75, -40.94)
CIE-LCHlch(29.60, 50.61, 306.00°)
OKLaboklab(40.55% 0.0503 -0.1164)
OKLCHoklch(40.55% 0.127 293.3)
XYZxyz(8.8100, 6.0731, 23.2577)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3786 #6F8637
analogous
#374886 #4E3786 #763786
triadic
#4E3786 #864E37 #37864E
tetradic
#4E3786 #863748 #6F8637 #378676
square
#4E3786 #863748 #6F8637 #378676
split-complementary
#4E3786 #867637 #488637
monochromatic
#1B132F #35255B #4E3786 #6749B1 #8A72C5

Accessibility & contrast

On white

9.48
#4E3786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4E3786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3786
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3786#FFFFFF#000000##FFFFFF
##4E37861.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4789
Deuteranopia (green-blind)
#134484
Tritanopia (blue-blind)
#3F4859
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e3786;
/* rgb */ color: rgb(78, 55, 134);
/* oklch */ color: oklch(40.6% 0.127 293.3);
Tailwind
colors: {
  custom: {
    50: '#846faa',
    500: '#4e3786',
    950: '#000000',
  },
}
SCSS
$custom: #4e3786;
$custom-light: #846faa;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3786",
  "rgb": {
    "r": 78,
    "g": 55,
    "b": 134
  },
  "hsl": {
    "h": 257.468,
    "s": 41.799,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40554,
    "c": 0.12682,
    "h": 293.3
  },
  "luminance": 0.06073
}

Semantic roles & 50–950 ramp

primary
#4E3786
secondary
#9AAE6B
accent
#D256AE
background
#F8F6FA
surface
#EFECF4
border
#CAC7CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E3786

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

Preview Lab → · Contrast checker → · Palette generator →

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