#4E2AA1#4E2AA1

#4E2AA1 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.179 H 290.0°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#4E2AA1
RGBrgb(78, 42, 161)
HSLhsl(258, 59%, 40%)
HSVhsv(258, 74%, 63%)
CMYKcmyk(51.6%, 73.9%, 0%, 36.9%)
CIE-LABlab(29.03, 45.08, -58.44)
CIE-LCHlch(29.03, 73.81, 307.64°)
OKLaboklab(40.82% 0.0609 -0.1678)
OKLCHoklch(40.82% 0.179 290)
XYZxyz(10.4010, 5.8484, 34.2921)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2AA1 #7DA12A
analogous
#2A42A1 #4E2AA1 #892AA1
triadic
#4E2AA1 #A14E2A #2AA14E
tetradic
#4E2AA1 #A12A42 #7DA12A #2AA189
square
#4E2AA1 #A12A42 #7DA12A #2AA189
split-complementary
#4E2AA1 #A1892A #42A12A
monochromatic
#1F1140 #361D70 #4E2AA1 #683CCC #8D6DD9

Accessibility & contrast

On white

9.68
#4E2AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4E2AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2AA1
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2AA1#FFFFFF#000000##FFFFFF
##4E2AA11.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A4
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#314A63
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e2aa1;
/* rgb */ color: rgb(78, 42, 161);
/* oklch */ color: oklch(40.8% 0.179 290.0);
Tailwind
colors: {
  custom: {
    50: '#8867be',
    500: '#4e2aa1',
    950: '#000000',
  },
}
SCSS
$custom: #4e2aa1;
$custom-light: #8867be;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2aa1",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 258.151,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4082,
    "c": 0.17857,
    "h": 290
  },
  "luminance": 0.05849
}

Semantic roles & 50–950 ramp

primary
#4E2AA1
secondary
#A5C067
accent
#E246B3
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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