#4E3387#4E3387

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

Color values

HEX#4E3387
RGBrgb(78, 51, 135)
HSLhsl(259, 45%, 36%)
HSVhsv(259, 62%, 53%)
CMYKcmyk(42.2%, 62.2%, 0%, 47.1%)
CIE-LABlab(28.74, 32.48, -42.95)
CIE-LCHlch(28.74, 53.85, 307.10°)
OKLaboklab(39.95% 0.0553 -0.1223)
OKLCHoklch(39.95% 0.134 294.3)
XYZxyz(8.6977, 5.7364, 23.5660)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3387 #6C8733
analogous
#334287 #4E3387 #783387
triadic
#4E3387 #874E33 #33874E
tetradic
#4E3387 #873342 #6C8733 #338778
square
#4E3387 #873342 #6C8733 #338778
split-complementary
#4E3387 #877833 #428733
monochromatic
#1B112E #34225B #4E3387 #6844B3 #8A6DC8

Accessibility & contrast

On white

9.78
#4E3387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4E3387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3387
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3387#FFFFFF#000000##FFFFFF
##4E33871.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#044285
Tritanopia (blue-blind)
#3F4658
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e3387;
/* rgb */ color: rgb(78, 51, 135);
/* oklch */ color: oklch(39.9% 0.134 294.3);
Tailwind
colors: {
  custom: {
    50: '#846cab',
    500: '#4e3387',
    950: '#000000',
  },
}
SCSS
$custom: #4e3387;
$custom-light: #846cab;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3387",
  "rgb": {
    "r": 78,
    "g": 51,
    "b": 135
  },
  "hsl": {
    "h": 259.286,
    "s": 45.161,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39948,
    "c": 0.13427,
    "h": 294.3
  },
  "luminance": 0.05737
}

Semantic roles & 50–950 ramp

primary
#4E3387
secondary
#98B066
accent
#D553AB
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4E3387

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

Preview Lab → · Contrast checker → · Palette generator →

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