#4E4086#4E4086

#4E4086 is a dark, moderate violet. Relative luminance 0.070; OKLCH L 42.2% C 0.113 H 289.9°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#4E4086
RGBrgb(78, 64, 134)
HSLhsl(252, 35%, 39%)
HSVhsv(252, 52%, 53%)
CMYKcmyk(41.8%, 52.2%, 0%, 47.5%)
CIE-LABlab(31.82, 24.08, -37.37)
CIE-LCHlch(31.82, 44.45, 302.79°)
OKLaboklab(42.21% 0.0384 -0.1059)
OKLCHoklch(42.21% 0.113 289.9)
XYZxyz(9.2772, 7.0074, 23.4134)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E4086 #788640
analogous
#405586 #4E4086 #714086
triadic
#4E4086 #864E40 #40864E
tetradic
#4E4086 #864055 #788640 #408671
square
#4E4086 #864055 #788640 #408671
split-complementary
#4E4086 #867140 #558640
monochromatic
#1E1833 #362C5D #4E4086 #6755AE #8C7FC2

Accessibility & contrast

On white

8.74
#4E4086 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#4E4086 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E4086
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E4086#FFFFFF#000000##FFFFFF
##4E40861.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234C88
Deuteranopia (green-blind)
#244984
Tritanopia (blue-blind)
#3F4E5D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4e4086;
/* rgb */ color: rgb(78, 64, 134);
/* oklch */ color: oklch(42.2% 0.113 289.9);
Tailwind
colors: {
  custom: {
    50: '#8375aa',
    500: '#4e4086',
    950: '#000000',
  },
}
SCSS
$custom: #4e4086;
$custom-light: #8375aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4e4086",
  "rgb": {
    "r": 78,
    "g": 64,
    "b": 134
  },
  "hsl": {
    "h": 252,
    "s": 35.354,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42206,
    "c": 0.11266,
    "h": 289.9
  },
  "luminance": 0.07008
}

Semantic roles & 50–950 ramp

primary
#4E4086
secondary
#A1AC76
accent
#CB5CB5
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #4E4086

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

Preview Lab → · Contrast checker → · Palette generator →

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