#4E319A#4E319A

#4E319A is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.2% C 0.162 H 290.1°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#4E319A
RGBrgb(78, 49, 154)
HSLhsl(257, 52%, 40%)
HSVhsv(257, 68%, 60%)
CMYKcmyk(49.4%, 68.2%, 0%, 39.6%)
CIE-LABlab(29.79, 39.25, -52.95)
CIE-LCHlch(29.79, 65.91, 306.55°)
OKLaboklab(41.17% 0.0557 -0.1517)
OKLCHoklch(41.17% 0.162 290.1)
XYZxyz(10.0713, 6.1490, 31.2218)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E319A #7D9A31
analogous
#31499A #4E319A #82319A
triadic
#4E319A #9A4E31 #319A4E
tetradic
#4E319A #9A3149 #7D9A31 #319A82
square
#4E319A #9A3149 #7D9A31 #319A82
split-complementary
#4E319A #9A8231 #499A31
monochromatic
#1F133D #36226C #4E319A #6845C4 #8D73D2

Accessibility & contrast

On white

9.42
#4E319A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4E319A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E319A
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E319A#FFFFFF#000000##FFFFFF
##4E319A1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489D
Deuteranopia (green-blind)
#004498
Tritanopia (blue-blind)
#354B61
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e319a;
/* rgb */ color: rgb(78, 49, 154);
/* oklch */ color: oklch(41.2% 0.162 290.1);
Tailwind
colors: {
  custom: {
    50: '#876bb9',
    500: '#4e319a',
    950: '#000000',
  },
}
SCSS
$custom: #4e319a;
$custom-light: #876bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e319a",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 154
  },
  "hsl": {
    "h": 256.571,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41173,
    "c": 0.16163,
    "h": 290.1
  },
  "luminance": 0.06149
}

Semantic roles & 50–950 ramp

primary
#4E319A
secondary
#A5BA6C
accent
#DB4DB4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E319A

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

Preview Lab → · Contrast checker → · Palette generator →

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