#4E3198#4E3198

#4E3198 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.0% C 0.159 H 290.6°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#4E3198
RGBrgb(78, 49, 152)
HSLhsl(257, 51%, 39%)
HSVhsv(257, 68%, 60%)
CMYKcmyk(48.7%, 67.8%, 0%, 40.4%)
CIE-LABlab(29.62, 38.66, -51.99)
CIE-LCHlch(29.62, 64.79, 306.63°)
OKLaboklab(41% 0.056 -0.1489)
OKLCHoklch(41% 0.159 290.6)
XYZxyz(9.9061, 6.0829, 30.3519)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3198 #7B9831
analogous
#314898 #4E3198 #823198
triadic
#4E3198 #984E31 #31984E
tetradic
#4E3198 #983148 #7B9831 #319882
square
#4E3198 #983148 #7B9831 #319882
split-complementary
#4E3198 #988231 #489831
monochromatic
#1F133B #36226A #4E3198 #6744C3 #8D72D2

Accessibility & contrast

On white

9.47
#4E3198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E3198
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3198#FFFFFF#000000##FFFFFF
##4E31981.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489B
Deuteranopia (green-blind)
#004396
Tritanopia (blue-blind)
#364A60
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e3198;
/* rgb */ color: rgb(78, 49, 152);
/* oklch */ color: oklch(41.0% 0.159 290.6);
Tailwind
colors: {
  custom: {
    50: '#866bb7',
    500: '#4e3198',
    950: '#000000',
  },
}
SCSS
$custom: #4e3198;
$custom-light: #866bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3198",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 152
  },
  "hsl": {
    "h": 256.893,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41003,
    "c": 0.1591,
    "h": 290.6
  },
  "luminance": 0.06083
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E3198

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

Preview Lab → · Contrast checker → · Palette generator →

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