#4E3397#4E3397

#4E3397 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.2% C 0.155 H 290.3°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#4E3397
RGBrgb(78, 51, 151)
HSLhsl(256, 50%, 40%)
HSVhsv(256, 66%, 59%)
CMYKcmyk(48.3%, 66.2%, 0%, 40.8%)
CIE-LABlab(29.96, 37.21, -50.82)
CIE-LCHlch(29.96, 62.99, 306.21°)
OKLaboklab(41.23% 0.054 -0.1455)
OKLCHoklch(41.23% 0.155 290.3)
XYZxyz(9.9100, 6.2213, 29.9508)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3397 #7C9733
analogous
#334A97 #4E3397 #803397
triadic
#4E3397 #974E33 #33974E
tetradic
#4E3397 #97334A #7C9733 #339780
square
#4E3397 #97334A #7C9733 #339780
split-complementary
#4E3397 #978033 #4A9733
monochromatic
#1F143C #362469 #4E3397 #6747C1 #8D74D0

Accessibility & contrast

On white

9.36
#4E3397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4E3397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3397
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3397#FFFFFF#000000##FFFFFF
##4E33971.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#004495
Tritanopia (blue-blind)
#374B60
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e3397;
/* rgb */ color: rgb(78, 51, 151);
/* oklch */ color: oklch(41.2% 0.155 290.3);
Tailwind
colors: {
  custom: {
    50: '#866cb6',
    500: '#4e3397',
    950: '#000000',
  },
}
SCSS
$custom: #4e3397;
$custom-light: #866cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3397",
  "rgb": {
    "r": 78,
    "g": 51,
    "b": 151
  },
  "hsl": {
    "h": 256.2,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41226,
    "c": 0.15519,
    "h": 290.3
  },
  "luminance": 0.06222
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E3397

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

Preview Lab → · Contrast checker → · Palette generator →

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