#4E3796#4E3796

#4E3796 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 41.8% C 0.148 H 289.5°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#4E3796
RGBrgb(78, 55, 150)
HSLhsl(255, 46%, 40%)
HSVhsv(255, 63%, 59%)
CMYKcmyk(48%, 63.3%, 0%, 41.2%)
CIE-LABlab(30.77, 34.54, -48.90)
CIE-LCHlch(30.77, 59.87, 305.24°)
OKLaboklab(41.79% 0.0496 -0.1399)
OKLCHoklch(41.79% 0.148 289.5)
XYZxyz(10.0115, 6.5537, 29.5857)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3796 #7F9637
analogous
#375096 #4E3796 #7D3796
triadic
#4E3796 #964E37 #37964E
tetradic
#4E3796 #963750 #7F9637 #37967D
square
#4E3796 #963750 #7F9637 #37967D
split-complementary
#4E3796 #967D37 #509637
monochromatic
#1F163C #372769 #4E3796 #684DBE #8E79CE

Accessibility & contrast

On white

9.09
#4E3796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#4E3796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3796
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3796#FFFFFF#000000##FFFFFF
##4E37961.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A99
Deuteranopia (green-blind)
#004694
Tritanopia (blue-blind)
#374D61
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e3796;
/* rgb */ color: rgb(78, 55, 150);
/* oklch */ color: oklch(41.8% 0.148 289.5);
Tailwind
colors: {
  custom: {
    50: '#866fb6',
    500: '#4e3796',
    950: '#000000',
  },
}
SCSS
$custom: #4e3796;
$custom-light: #866fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3796",
  "rgb": {
    "r": 78,
    "g": 55,
    "b": 150
  },
  "hsl": {
    "h": 254.526,
    "s": 46.341,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41785,
    "c": 0.14842,
    "h": 289.5
  },
  "luminance": 0.06554
}

Semantic roles & 50–950 ramp

primary
#4E3796
secondary
#A6B772
accent
#D652B6
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E3796

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

Preview Lab → · Contrast checker → · Palette generator →

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