#4E3398#4E3398

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

Color values

HEX#4E3398
RGBrgb(78, 51, 152)
HSLhsl(256, 50%, 40%)
HSVhsv(256, 66%, 60%)
CMYKcmyk(48.7%, 66.4%, 0%, 40.4%)
CIE-LABlab(30.04, 37.51, -51.30)
CIE-LCHlch(30.04, 63.55, 306.17°)
OKLaboklab(41.31% 0.0538 -0.1469)
OKLCHoklch(41.31% 0.156 290.1)
XYZxyz(9.9916, 6.2540, 30.3804)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3398 #7D9833
analogous
#334A98 #4E3398 #813398
triadic
#4E3398 #984E33 #33984E
tetradic
#4E3398 #98334A #7D9833 #339881
square
#4E3398 #98334A #7D9833 #339881
split-complementary
#4E3398 #988133 #4A9833
monochromatic
#1F143C #36246A #4E3398 #6847C1 #8D75D1

Accessibility & contrast

On white

9.33
#4E3398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E3398
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3398#FFFFFF#000000##FFFFFF
##4E33981.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e3398;
/* rgb */ color: rgb(78, 51, 152);
/* oklch */ color: oklch(41.3% 0.156 290.1);
Tailwind
colors: {
  custom: {
    50: '#866cb7',
    500: '#4e3398',
    950: '#000000',
  },
}
SCSS
$custom: #4e3398;
$custom-light: #866cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3398",
  "rgb": {
    "r": 78,
    "g": 51,
    "b": 152
  },
  "hsl": {
    "h": 256.04,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41309,
    "c": 0.15647,
    "h": 290.1
  },
  "luminance": 0.06254
}

Semantic roles & 50–950 ramp

primary
#4E3398
secondary
#A5B96E
accent
#D94FB4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4E3398

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

Preview Lab → · Contrast checker → · Palette generator →

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