#4E3498#4E3498

#4E3498 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.5% C 0.155 H 289.9°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#4E3498
RGBrgb(78, 52, 152)
HSLhsl(256, 49%, 40%)
HSVhsv(256, 66%, 60%)
CMYKcmyk(48.7%, 65.8%, 0%, 40.4%)
CIE-LABlab(30.26, 36.93, -50.95)
CIE-LCHlch(30.26, 62.93, 305.93°)
OKLaboklab(41.47% 0.0528 -0.1459)
OKLCHoklch(41.47% 0.155 289.9)
XYZxyz(10.0358, 6.3423, 30.3951)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3498 #7E9834
analogous
#344C98 #4E3498 #803498
triadic
#4E3498 #984E34 #34984E
tetradic
#4E3498 #98344C #7E9834 #349880
square
#4E3498 #98344C #7E9834 #349880
split-complementary
#4E3498 #988034 #4C9834
monochromatic
#1F153D #37246A #4E3498 #6849C1 #8E76D0

Accessibility & contrast

On white

9.26
#4E3498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4E3498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3498
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3498#FFFFFF#000000##FFFFFF
##4E34981.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499B
Deuteranopia (green-blind)
#004596
Tritanopia (blue-blind)
#364C61
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e3498;
/* rgb */ color: rgb(78, 52, 152);
/* oklch */ color: oklch(41.5% 0.155 289.9);
Tailwind
colors: {
  custom: {
    50: '#866db7',
    500: '#4e3498',
    950: '#000000',
  },
}
SCSS
$custom: #4e3498;
$custom-light: #866db7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3498",
  "rgb": {
    "r": 78,
    "g": 52,
    "b": 152
  },
  "hsl": {
    "h": 255.6,
    "s": 49.02,
    "l": 40
  },
  "oklch": {
    "l": 0.41465,
    "c": 0.15514,
    "h": 289.9
  },
  "luminance": 0.06343
}

Semantic roles & 50–950 ramp

primary
#4E3498
secondary
#A6B96F
accent
#D94FB5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E3498

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

Preview Lab → · Contrast checker → · Palette generator →

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