#4E3496#4E3496

#4E3496 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.3% C 0.153 H 290.3°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#4E3496
RGBrgb(78, 52, 150)
HSLhsl(256, 49%, 40%)
HSVhsv(256, 65%, 59%)
CMYKcmyk(48%, 65.3%, 0%, 41.2%)
CIE-LABlab(30.10, 36.33, -49.99)
CIE-LCHlch(30.10, 61.79, 306.01°)
OKLaboklab(41.3% 0.053 -0.143)
OKLCHoklch(41.3% 0.153 290.3)
XYZxyz(9.8733, 6.2773, 29.5397)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3496 #7C9634
analogous
#344B96 #4E3496 #7F3496
triadic
#4E3496 #964E34 #34964E
tetradic
#4E3496 #96344B #7C9634 #34967F
square
#4E3496 #96344B #7C9634 #34967F
split-complementary
#4E3496 #967F34 #4B9634
monochromatic
#1F143B #362469 #4E3496 #6748BF #8D75CF

Accessibility & contrast

On white

9.31
#4E3496 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4E3496 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3496
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3496#FFFFFF#000000##FFFFFF
##4E34961.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004999
Deuteranopia (green-blind)
#004594
Tritanopia (blue-blind)
#374B60
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e3496;
/* rgb */ color: rgb(78, 52, 150);
/* oklch */ color: oklch(41.3% 0.153 290.3);
Tailwind
colors: {
  custom: {
    50: '#866db6',
    500: '#4e3496',
    950: '#000000',
  },
}
SCSS
$custom: #4e3496;
$custom-light: #866db6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3496",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 150
  },
  "hsl": {
    "h": 255.918,
    "s": 48.515,
    "l": 39.608
  },
  "oklch": {
    "l": 0.413,
    "c": 0.15255,
    "h": 290.3
  },
  "luminance": 0.06278
}

Semantic roles & 50–950 ramp

primary
#4E3496
secondary
#A4B86E
accent
#D850B4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E3496

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

Preview Lab → · Contrast checker → · Palette generator →

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