#4E3399#4E3399

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

Color values

HEX#4E3399
RGBrgb(78, 51, 153)
HSLhsl(256, 50%, 40%)
HSVhsv(256, 67%, 60%)
CMYKcmyk(49%, 66.7%, 0%, 40%)
CIE-LABlab(30.13, 37.81, -51.78)
CIE-LCHlch(30.13, 64.11, 306.13°)
OKLaboklab(41.39% 0.0537 -0.1483)
OKLCHoklch(41.39% 0.158 289.9)
XYZxyz(10.0738, 6.2869, 30.8135)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3399 #7E9933
analogous
#334B99 #4E3399 #813399
triadic
#4E3399 #994E33 #33994E
tetradic
#4E3399 #99334B #7E9933 #339981
square
#4E3399 #99334B #7E9933 #339981
split-complementary
#4E3399 #998133 #4B9933
monochromatic
#1F143D #37246B #4E3399 #6847C2 #8E75D1

Accessibility & contrast

On white

9.30
#4E3399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E3399
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3399#FFFFFF#000000##FFFFFF
##4E33991.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499C
Deuteranopia (green-blind)
#004597
Tritanopia (blue-blind)
#354C61
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e3399;
/* rgb */ color: rgb(78, 51, 153);
/* oklch */ color: oklch(41.4% 0.158 289.9);
Tailwind
colors: {
  custom: {
    50: '#866cb8',
    500: '#4e3399',
    950: '#000000',
  },
}
SCSS
$custom: #4e3399;
$custom-light: #866cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3399",
  "rgb": {
    "r": 78,
    "g": 51,
    "b": 153
  },
  "hsl": {
    "h": 255.882,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.41392,
    "c": 0.15775,
    "h": 289.9
  },
  "luminance": 0.06287
}

Semantic roles & 50–950 ramp

primary
#4E3399
secondary
#A6B96E
accent
#DA4EB5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E3399

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

Preview Lab → · Contrast checker → · Palette generator →

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