#4E3194#4E3194

#4E3194 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.7% C 0.154 H 291.5°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#4E3194
RGBrgb(78, 49, 148)
HSLhsl(258, 50%, 39%)
HSVhsv(258, 67%, 58%)
CMYKcmyk(47.3%, 66.9%, 0%, 42%)
CIE-LABlab(29.30, 37.48, -50.07)
CIE-LCHlch(29.30, 62.54, 306.82°)
OKLaboklab(40.67% 0.0565 -0.1433)
OKLCHoklch(40.67% 0.154 291.5)
XYZxyz(9.5840, 5.9541, 28.6555)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3194 #779431
analogous
#314594 #4E3194 #7F3194
triadic
#4E3194 #944E31 #31944E
tetradic
#4E3194 #943145 #779431 #31947F
square
#4E3194 #943145 #779431 #31947F
split-complementary
#4E3194 #947F31 #459431
monochromatic
#1E1338 #362266 #4E3194 #6742C0 #8C70D0

Accessibility & contrast

On white

9.59
#4E3194 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4E3194 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3194
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3194#FFFFFF#000000##FFFFFF
##4E31941.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004797
Deuteranopia (green-blind)
#004392
Tritanopia (blue-blind)
#39495E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e3194;
/* rgb */ color: rgb(78, 49, 148);
/* oklch */ color: oklch(40.7% 0.154 291.5);
Tailwind
colors: {
  custom: {
    50: '#866bb4',
    500: '#4e3194',
    950: '#000000',
  },
}
SCSS
$custom: #4e3194;
$custom-light: #866bb4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3194",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 148
  },
  "hsl": {
    "h": 257.576,
    "s": 50.254,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40668,
    "c": 0.15402,
    "h": 291.5
  },
  "luminance": 0.05954
}

Semantic roles & 50–950 ramp

primary
#4E3194
secondary
#A1B769
accent
#DA4EB1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E3194

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

Preview Lab → · Contrast checker → · Palette generator →

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