#4E3396#4E3396

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

Color values

HEX#4E3396
RGBrgb(78, 51, 150)
HSLhsl(256, 49%, 39%)
HSVhsv(256, 66%, 59%)
CMYKcmyk(48%, 66%, 0%, 41.2%)
CIE-LABlab(29.88, 36.91, -50.34)
CIE-LCHlch(29.88, 62.42, 306.25°)
OKLaboklab(41.14% 0.0541 -0.1441)
OKLCHoklch(41.14% 0.154 290.6)
XYZxyz(9.8292, 6.1890, 29.5249)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3396 #7B9633
analogous
#334996 #4E3396 #803396
triadic
#4E3396 #964E33 #33964E
tetradic
#4E3396 #963349 #7B9633 #339680
square
#4E3396 #963349 #7B9633 #339680
split-complementary
#4E3396 #968033 #499633
monochromatic
#1F143B #362368 #4E3396 #6746C0 #8D74D0

Accessibility & contrast

On white

9.38
#4E3396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4E3396 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3396
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3396#FFFFFF#000000##FFFFFF
##4E33961.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004899
Deuteranopia (green-blind)
#004494
Tritanopia (blue-blind)
#374B60
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e3396;
/* rgb */ color: rgb(78, 51, 150);
/* oklch */ color: oklch(41.1% 0.154 290.6);
Tailwind
colors: {
  custom: {
    50: '#866cb6',
    500: '#4e3396',
    950: '#000000',
  },
}
SCSS
$custom: #4e3396;
$custom-light: #866cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3396",
  "rgb": {
    "r": 78,
    "g": 51,
    "b": 150
  },
  "hsl": {
    "h": 256.364,
    "s": 49.254,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41143,
    "c": 0.1539,
    "h": 290.6
  },
  "luminance": 0.06189
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E3396

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

Preview Lab → · Contrast checker → · Palette generator →

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