#4E3495#4E3495

#4E3495 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.2% C 0.151 H 290.5°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#4E3495
RGBrgb(78, 52, 149)
HSLhsl(256, 48%, 39%)
HSVhsv(256, 65%, 58%)
CMYKcmyk(47.7%, 65.1%, 0%, 41.6%)
CIE-LABlab(30.02, 36.03, -49.50)
CIE-LCHlch(30.02, 61.23, 306.05°)
OKLaboklab(41.22% 0.0531 -0.1416)
OKLCHoklch(41.22% 0.151 290.5)
XYZxyz(9.7932, 6.2453, 29.1174)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3495 #7B9534
analogous
#344B95 #4E3495 #7F3495
triadic
#4E3495 #954E34 #34954E
tetradic
#4E3495 #95344B #7B9534 #34957F
square
#4E3495 #95344B #7B9534 #34957F
split-complementary
#4E3495 #957F34 #4B9534
monochromatic
#1F143A #362468 #4E3495 #6747BF #8D75CF

Accessibility & contrast

On white

9.34
#4E3495 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4E3495 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3495
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3495#FFFFFF#000000##FFFFFF
##4E34951.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004898
Deuteranopia (green-blind)
#004593
Tritanopia (blue-blind)
#384B5F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e3495;
/* rgb */ color: rgb(78, 52, 149);
/* oklch */ color: oklch(41.2% 0.151 290.5);
Tailwind
colors: {
  custom: {
    50: '#866db5',
    500: '#4e3495',
    950: '#000000',
  },
}
SCSS
$custom: #4e3495;
$custom-light: #866db5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3495",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 149
  },
  "hsl": {
    "h": 256.082,
    "s": 48.259,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41218,
    "c": 0.15125,
    "h": 290.5
  },
  "luminance": 0.06246
}

Semantic roles & 50–950 ramp

primary
#4E3495
secondary
#A3B76E
accent
#D850B3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E3495

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

Preview Lab → · Contrast checker → · Palette generator →

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