#4E4186#4E4186

#4E4186 is a dark, moderate violet. Relative luminance 0.071; OKLCH L 42.4% C 0.111 H 289.5°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#4E4186
RGBrgb(78, 65, 134)
HSLhsl(251, 35%, 39%)
HSVhsv(251, 51%, 53%)
CMYKcmyk(41.8%, 51.5%, 0%, 47.5%)
CIE-LABlab(32.08, 23.44, -36.95)
CIE-LCHlch(32.08, 43.76, 302.38°)
OKLaboklab(42.4% 0.037 -0.1047)
OKLCHoklch(42.4% 0.111 289.5)
XYZxyz(9.3341, 7.1212, 23.4324)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E4186 #798641
analogous
#415786 #4E4186 #714186
triadic
#4E4186 #864E41 #41864E
tetradic
#4E4186 #864157 #798641 #418671
square
#4E4186 #864157 #798641 #418671
split-complementary
#4E4186 #867141 #578641
monochromatic
#1E1934 #362D5D #4E4186 #6757AD #8C80C1

Accessibility & contrast

On white

8.66
#4E4186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#4E4186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E4186
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E4186#FFFFFF#000000##FFFFFF
##4E41861.008.662.428.66
#FFFFFF8.661.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254D88
Deuteranopia (green-blind)
#264A84
Tritanopia (blue-blind)
#3F4F5D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4e4186;
/* rgb */ color: rgb(78, 65, 134);
/* oklch */ color: oklch(42.4% 0.111 289.5);
Tailwind
colors: {
  custom: {
    50: '#8376aa',
    500: '#4e4186',
    950: '#000000',
  },
}
SCSS
$custom: #4e4186;
$custom-light: #8376aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4e4186",
  "rgb": {
    "r": 78,
    "g": 65,
    "b": 134
  },
  "hsl": {
    "h": 251.304,
    "s": 34.673,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42399,
    "c": 0.11106,
    "h": 289.5
  },
  "luminance": 0.07122
}

Semantic roles & 50–950 ramp

primary
#4E4186
secondary
#A2AC77
accent
#CB5DB6
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #4E4186

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

Preview Lab → · Contrast checker → · Palette generator →

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