#4E2EA1#4E2EA1

#4E2EA1 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.4% C 0.174 H 289.2°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#4E2EA1
RGBrgb(78, 46, 161)
HSLhsl(257, 56%, 41%)
HSVhsv(257, 71%, 63%)
CMYKcmyk(51.6%, 71.4%, 0%, 36.9%)
CIE-LABlab(29.78, 42.97, -57.21)
CIE-LCHlch(29.78, 71.55, 306.91°)
OKLaboklab(41.35% 0.0574 -0.1643)
OKLCHoklch(41.35% 0.174 289.2)
XYZxyz(10.5500, 6.1464, 34.3418)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2EA1 #81A12E
analogous
#2E47A1 #4E2EA1 #882EA1
triadic
#4E2EA1 #A14E2E #2EA14E
tetradic
#4E2EA1 #A12E47 #81A12E #2EA188
square
#4E2EA1 #A12E47 #81A12E #2EA188
split-complementary
#4E2EA1 #A1882E #47A12E
monochromatic
#201342 #372071 #4E2EA1 #6843C9 #8E73D7

Accessibility & contrast

On white

9.42
#4E2EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4E2EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2EA1
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2EA1#FFFFFF#000000##FFFFFF
##4E2EA11.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A4
Deuteranopia (green-blind)
#00439F
Tritanopia (blue-blind)
#304C64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e2ea1;
/* rgb */ color: rgb(78, 46, 161);
/* oklch */ color: oklch(41.4% 0.174 289.2);
Tailwind
colors: {
  custom: {
    50: '#886abe',
    500: '#4e2ea1',
    950: '#000000',
  },
}
SCSS
$custom: #4e2ea1;
$custom-light: #886abe;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2ea1",
  "rgb": {
    "r": 78,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 256.696,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41353,
    "c": 0.17399,
    "h": 289.2
  },
  "luminance": 0.06147
}

Semantic roles & 50–950 ramp

primary
#4E2EA1
secondary
#A8BE6C
accent
#DF49B5
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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