#4E3395#4E3395

#4E3395 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.1% C 0.153 H 290.8°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#4E3395
RGBrgb(78, 51, 149)
HSLhsl(257, 49%, 39%)
HSVhsv(257, 66%, 58%)
CMYKcmyk(47.7%, 65.8%, 0%, 41.6%)
CIE-LABlab(29.80, 36.62, -49.86)
CIE-LCHlch(29.80, 61.86, 306.29°)
OKLaboklab(41.06% 0.0542 -0.1427)
OKLCHoklch(41.06% 0.153 290.8)
XYZxyz(9.7490, 6.1569, 29.1027)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3395 #7A9533
analogous
#334995 #4E3395 #7F3395
triadic
#4E3395 #954E33 #33954E
tetradic
#4E3395 #953349 #7A9533 #33957F
square
#4E3395 #953349 #7A9533 #33957F
split-complementary
#4E3395 #957F33 #499533
monochromatic
#1E143A #362367 #4E3395 #6746C0 #8D73CF

Accessibility & contrast

On white

9.41
#4E3395 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4E3395 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3395
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3395#FFFFFF#000000##FFFFFF
##4E33951.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004898
Deuteranopia (green-blind)
#004493
Tritanopia (blue-blind)
#384A5F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e3395;
/* rgb */ color: rgb(78, 51, 149);
/* oklch */ color: oklch(41.1% 0.153 290.8);
Tailwind
colors: {
  custom: {
    50: '#866cb5',
    500: '#4e3395',
    950: '#000000',
  },
}
SCSS
$custom: #4e3395;
$custom-light: #866cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3395",
  "rgb": {
    "r": 78,
    "g": 51,
    "b": 149
  },
  "hsl": {
    "h": 256.531,
    "s": 49,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41061,
    "c": 0.15261,
    "h": 290.8
  },
  "luminance": 0.06157
}

Semantic roles & 50–950 ramp

primary
#4E3395
secondary
#A3B76C
accent
#D94FB3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E3395

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

Preview Lab → · Contrast checker → · Palette generator →

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