#4E3196#4E3196

#4E3196 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.8% C 0.157 H 291.0°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#4E3196
RGBrgb(78, 49, 150)
HSLhsl(257, 51%, 39%)
HSVhsv(257, 67%, 59%)
CMYKcmyk(48%, 67.3%, 0%, 41.2%)
CIE-LABlab(29.46, 38.07, -51.03)
CIE-LCHlch(29.46, 63.67, 306.72°)
OKLaboklab(40.84% 0.0562 -0.1461)
OKLCHoklch(40.84% 0.157 291)
XYZxyz(9.7437, 6.0180, 29.4964)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3196 #799631
analogous
#314796 #4E3196 #813196
triadic
#4E3196 #964E31 #31964E
tetradic
#4E3196 #963147 #799631 #319681
square
#4E3196 #963147 #799631 #319681
split-complementary
#4E3196 #968131 #479631
monochromatic
#1E133A #362268 #4E3196 #6743C1 #8C71D1

Accessibility & contrast

On white

9.53
#4E3196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4E3196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3196
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3196#FFFFFF#000000##FFFFFF
##4E31961.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004799
Deuteranopia (green-blind)
#004394
Tritanopia (blue-blind)
#374A5F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e3196;
/* rgb */ color: rgb(78, 49, 150);
/* oklch */ color: oklch(40.8% 0.157 291.0);
Tailwind
colors: {
  custom: {
    50: '#866bb6',
    500: '#4e3196',
    950: '#000000',
  },
}
SCSS
$custom: #4e3196;
$custom-light: #866bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3196",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 150
  },
  "hsl": {
    "h": 257.228,
    "s": 50.754,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40835,
    "c": 0.15657,
    "h": 291
  },
  "luminance": 0.06018
}

Semantic roles & 50–950 ramp

primary
#4E3196
secondary
#A2B86A
accent
#DA4EB2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E3196

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

Preview Lab → · Contrast checker → · Palette generator →

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