#4E3386#4E3386

#4E3386 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 39.9% C 0.133 H 294.6°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#4E3386
RGBrgb(78, 51, 134)
HSLhsl(260, 45%, 36%)
HSVhsv(260, 62%, 53%)
CMYKcmyk(41.8%, 61.9%, 0%, 47.5%)
CIE-LABlab(28.66, 32.19, -42.44)
CIE-LCHlch(28.66, 53.27, 307.18°)
OKLaboklab(39.87% 0.0553 -0.1209)
OKLCHoklch(39.87% 0.133 294.6)
XYZxyz(8.6276, 5.7084, 23.1969)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3386 #6B8633
analogous
#334286 #4E3386 #783386
triadic
#4E3386 #864E33 #33864E
tetradic
#4E3386 #863342 #6B8633 #338678
square
#4E3386 #863342 #6B8633 #338678
split-complementary
#4E3386 #867833 #428633
monochromatic
#1A112D #34225A #4E3386 #6844B2 #8A6CC7

Accessibility & contrast

On white

9.80
#4E3386 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4E3386 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3386
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3386#FFFFFF#000000##FFFFFF
##4E33861.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004489
Deuteranopia (green-blind)
#074284
Tritanopia (blue-blind)
#404557
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e3386;
/* rgb */ color: rgb(78, 51, 134);
/* oklch */ color: oklch(39.9% 0.133 294.6);
Tailwind
colors: {
  custom: {
    50: '#846caa',
    500: '#4e3386',
    950: '#000000',
  },
}
SCSS
$custom: #4e3386;
$custom-light: #846caa;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3386",
  "rgb": {
    "r": 78,
    "g": 51,
    "b": 134
  },
  "hsl": {
    "h": 259.518,
    "s": 44.865,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39871,
    "c": 0.13293,
    "h": 294.6
  },
  "luminance": 0.05709
}

Semantic roles & 50–950 ramp

primary
#4E3386
secondary
#97AF66
accent
#D553AA
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E3386

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

Preview Lab → · Contrast checker → · Palette generator →

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