#4E3497#4E3497

#4E3497 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.4% C 0.154 H 290.1°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#4E3497
RGBrgb(78, 52, 151)
HSLhsl(256, 49%, 40%)
HSVhsv(256, 66%, 59%)
CMYKcmyk(48.3%, 65.6%, 0%, 40.8%)
CIE-LABlab(30.18, 36.63, -50.47)
CIE-LCHlch(30.18, 62.36, 305.97°)
OKLaboklab(41.38% 0.0529 -0.1445)
OKLCHoklch(41.38% 0.154 290.1)
XYZxyz(9.9542, 6.3097, 29.9656)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3497 #7D9734
analogous
#344B97 #4E3497 #803497
triadic
#4E3497 #974E34 #34974E
tetradic
#4E3497 #97344B #7D9734 #349780
square
#4E3497 #97344B #7D9734 #349780
split-complementary
#4E3497 #978034 #4B9734
monochromatic
#1F153C #362469 #4E3497 #6848C0 #8D76D0

Accessibility & contrast

On white

9.28
#4E3497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E3497
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3497#FFFFFF#000000##FFFFFF
##4E34971.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#004595
Tritanopia (blue-blind)
#374C60
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e3497;
/* rgb */ color: rgb(78, 52, 151);
/* oklch */ color: oklch(41.4% 0.154 290.1);
Tailwind
colors: {
  custom: {
    50: '#866db6',
    500: '#4e3497',
    950: '#000000',
  },
}
SCSS
$custom: #4e3497;
$custom-light: #866db6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3497",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 151
  },
  "hsl": {
    "h": 255.758,
    "s": 48.768,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41382,
    "c": 0.15384,
    "h": 290.1
  },
  "luminance": 0.0631
}

Semantic roles & 50–950 ramp

primary
#4E3497
secondary
#A5B86F
accent
#D84FB4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E3497

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

Preview Lab → · Contrast checker → · Palette generator →

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