#4E2EA4#4E2EA4

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

Color values

HEX#4E2EA4
RGBrgb(78, 46, 164)
HSLhsl(256, 56%, 41%)
HSVhsv(256, 72%, 64%)
CMYKcmyk(52.4%, 72%, 0%, 35.7%)
CIE-LABlab(30.04, 43.85, -58.59)
CIE-LCHlch(30.04, 73.18, 306.81°)
OKLaboklab(41.62% 0.0568 -0.1683)
OKLCHoklch(41.62% 0.178 288.6)
XYZxyz(10.8178, 6.2535, 35.7518)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2EA4 #84A42E
analogous
#2E49A4 #4E2EA4 #892EA4
triadic
#4E2EA4 #A44E2E #2EA44E
tetradic
#4E2EA4 #A42E49 #84A42E #2EA489
square
#4E2EA4 #A42E49 #84A42E #2EA489
split-complementary
#4E2EA4 #A4892E #49A42E
monochromatic
#211344 #372174 #4E2EA4 #6945CB #8F74D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E2EA4#FFFFFF#000000##FFFFFF
##4E2EA41.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)
#0049A7
Deuteranopia (green-blind)
#0044A2
Tritanopia (blue-blind)
#2E4D66
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e2ea4;
/* rgb */ color: rgb(78, 46, 164);
/* oklch */ color: oklch(41.6% 0.178 288.6);
Tailwind
colors: {
  custom: {
    50: '#886ac0',
    500: '#4e2ea4',
    950: '#000000',
  },
}
SCSS
$custom: #4e2ea4;
$custom-light: #886ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2ea4",
  "rgb": {
    "r": 78,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 256.271,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41623,
    "c": 0.17762,
    "h": 288.6
  },
  "luminance": 0.06254
}

Semantic roles & 50–950 ramp

primary
#4E2EA4
secondary
#AAC06E
accent
#DF48B6
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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