#4E2AA9#4E2AA9

#4E2AA9 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.6% C 0.188 H 288.3°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#4E2AA9
RGBrgb(78, 42, 169)
HSLhsl(257, 60%, 41%)
HSVhsv(257, 75%, 66%)
CMYKcmyk(53.8%, 75.1%, 0%, 33.7%)
CIE-LABlab(29.76, 47.36, -62.07)
CIE-LCHlch(29.76, 78.07, 307.35°)
OKLaboklab(41.56% 0.059 -0.1785)
OKLCHoklch(41.56% 0.188 288.3)
XYZxyz(11.1292, 6.1397, 38.1271)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2AA9 #85A92A
analogous
#2A46A9 #4E2AA9 #8E2AA9
triadic
#4E2AA9 #A94E2A #2AA94E
tetradic
#4E2AA9 #A92A46 #85A92A #2AA98E
square
#4E2AA9 #A92A46 #85A92A #2AA98E
split-complementary
#4E2AA9 #A98E2A #46A92A
monochromatic
#211247 #371E78 #4E2AA9 #6941D0 #9072DC

Accessibility & contrast

On white

9.43
#4E2AA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2AA9
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2AA9#FFFFFF#000000##FFFFFF
##4E2AA91.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AD
Deuteranopia (green-blind)
#0043A7
Tritanopia (blue-blind)
#2A4D67
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e2aa9;
/* rgb */ color: rgb(78, 42, 169);
/* oklch */ color: oklch(41.6% 0.188 288.3);
Tailwind
colors: {
  custom: {
    50: '#8968c4',
    500: '#4e2aa9',
    950: '#000000',
  },
}
SCSS
$custom: #4e2aa9;
$custom-light: #8968c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2aa9",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 169
  },
  "hsl": {
    "h": 257.008,
    "s": 60.19,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41563,
    "c": 0.18797,
    "h": 288.3
  },
  "luminance": 0.0614
}

Semantic roles & 50–950 ramp

primary
#4E2AA9
secondary
#AAC36C
accent
#E344B6
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E2AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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