#4E3199#4E3199

#4E3199 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.1% C 0.160 H 290.4°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#4E3199
RGBrgb(78, 49, 153)
HSLhsl(257, 51%, 40%)
HSVhsv(257, 68%, 60%)
CMYKcmyk(49%, 68%, 0%, 40%)
CIE-LABlab(29.70, 38.96, -52.47)
CIE-LCHlch(29.70, 65.35, 306.59°)
OKLaboklab(41.09% 0.0558 -0.1503)
OKLCHoklch(41.09% 0.16 290.4)
XYZxyz(9.9883, 6.1158, 30.7850)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3199 #7C9931
analogous
#314899 #4E3199 #823199
triadic
#4E3199 #994E31 #31994E
tetradic
#4E3199 #993148 #7C9931 #319982
square
#4E3199 #993148 #7C9931 #319982
split-complementary
#4E3199 #998231 #489931
monochromatic
#1F133C #36226B #4E3199 #6844C3 #8D72D2

Accessibility & contrast

On white

9.45
#4E3199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4E3199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3199
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3199#FFFFFF#000000##FFFFFF
##4E31991.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489C
Deuteranopia (green-blind)
#004497
Tritanopia (blue-blind)
#364B61
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e3199;
/* rgb */ color: rgb(78, 49, 153);
/* oklch */ color: oklch(41.1% 0.160 290.4);
Tailwind
colors: {
  custom: {
    50: '#866bb8',
    500: '#4e3199',
    950: '#000000',
  },
}
SCSS
$custom: #4e3199;
$custom-light: #866bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3199",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 153
  },
  "hsl": {
    "h": 256.731,
    "s": 51.485,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41088,
    "c": 0.16036,
    "h": 290.4
  },
  "luminance": 0.06116
}

Semantic roles & 50–950 ramp

primary
#4E3199
secondary
#A4BA6C
accent
#DB4DB3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E3199

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

Preview Lab → · Contrast checker → · Palette generator →

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