#4E3893#4E3893

#4E3893 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 41.7% C 0.143 H 289.9°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#4E3893
RGBrgb(78, 56, 147)
HSLhsl(255, 45%, 40%)
HSVhsv(255, 62%, 58%)
CMYKcmyk(46.9%, 61.9%, 0%, 42.4%)
CIE-LABlab(30.77, 33.03, -47.07)
CIE-LCHlch(30.77, 57.50, 305.06°)
OKLaboklab(41.71% 0.0487 -0.1345)
OKLCHoklch(41.71% 0.143 289.9)
XYZxyz(9.8210, 6.5543, 28.3457)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3893 #7D9338
analogous
#385093 #4E3893 #7B3893
triadic
#4E3893 #934E38 #38934E
tetradic
#4E3893 #933850 #7D9338 #38937B
square
#4E3893 #933850 #7D9338 #38937B
split-complementary
#4E3893 #937B38 #509338
monochromatic
#1F163A #362767 #4E3893 #684DBB #8D79CC

Accessibility & contrast

On white

9.09
#4E3893 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#4E3893 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E3893
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3893#FFFFFF#000000##FFFFFF
##4E38931.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A96
Deuteranopia (green-blind)
#004691
Tritanopia (blue-blind)
#394D60
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e3893;
/* rgb */ color: rgb(78, 56, 147);
/* oklch */ color: oklch(41.7% 0.143 289.9);
Tailwind
colors: {
  custom: {
    50: '#856fb3',
    500: '#4e3893',
    950: '#000000',
  },
}
SCSS
$custom: #4e3893;
$custom-light: #856fb3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3893",
  "rgb": {
    "r": 78,
    "g": 56,
    "b": 147
  },
  "hsl": {
    "h": 254.505,
    "s": 44.828,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41714,
    "c": 0.143,
    "h": 289.9
  },
  "luminance": 0.06555
}

Semantic roles & 50–950 ramp

primary
#4E3893
secondary
#A5B572
accent
#D553B5
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #4E3893

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

Preview Lab → · Contrast checker → · Palette generator →

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