#4E2AA0#4E2AA0

#4E2AA0 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.7% C 0.177 H 290.2°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#4E2AA0
RGBrgb(78, 42, 160)
HSLhsl(258, 58%, 40%)
HSVhsv(258, 74%, 63%)
CMYKcmyk(51.2%, 73.8%, 0%, 37.3%)
CIE-LABlab(28.94, 44.79, -57.98)
CIE-LCHlch(28.94, 73.27, 307.69°)
OKLaboklab(40.73% 0.0612 -0.1665)
OKLCHoklch(40.73% 0.177 290.2)
XYZxyz(10.3132, 5.8133, 33.8296)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2AA0 #7CA02A
analogous
#2A41A0 #4E2AA0 #892AA0
triadic
#4E2AA0 #A04E2A #2AA04E
tetradic
#4E2AA0 #A02A41 #7CA02A #2AA089
square
#4E2AA0 #A02A41 #7CA02A #2AA089
split-complementary
#4E2AA0 #A0892A #41A02A
monochromatic
#1F113F #361D70 #4E2AA0 #673CCC #8D6CD8

Accessibility & contrast

On white

9.71
#4E2AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4E2AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2AA0
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2AA0#FFFFFF#000000##FFFFFF
##4E2AA01.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A3
Deuteranopia (green-blind)
#00419E
Tritanopia (blue-blind)
#314962
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e2aa0;
/* rgb */ color: rgb(78, 42, 160);
/* oklch */ color: oklch(40.7% 0.177 290.2);
Tailwind
colors: {
  custom: {
    50: '#8867bd',
    500: '#4e2aa0',
    950: '#000000',
  },
}
SCSS
$custom: #4e2aa0;
$custom-light: #8867bd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2aa0",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 160
  },
  "hsl": {
    "h": 258.305,
    "s": 58.416,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40728,
    "c": 0.17738,
    "h": 290.2
  },
  "luminance": 0.05814
}

Semantic roles & 50–950 ramp

primary
#4E2AA0
secondary
#A4BF67
accent
#E246B2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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