#4E2AA7#4E2AA7

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

Color values

HEX#4E2AA7
RGBrgb(78, 42, 167)
HSLhsl(257, 60%, 41%)
HSVhsv(257, 75%, 65%)
CMYKcmyk(53.3%, 74.9%, 0%, 34.5%)
CIE-LABlab(29.58, 46.79, -61.17)
CIE-LCHlch(29.58, 77.01, 307.41°)
OKLaboklab(41.38% 0.0595 -0.1758)
OKLCHoklch(41.38% 0.186 288.7)
XYZxyz(10.9429, 6.0651, 37.1458)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2AA7 #83A72A
analogous
#2A44A7 #4E2AA7 #8C2AA7
triadic
#4E2AA7 #A74E2A #2AA74E
tetradic
#4E2AA7 #A72A44 #83A72A #2AA78C
square
#4E2AA7 #A72A44 #83A72A #2AA78C
split-complementary
#4E2AA7 #A78C2A #44A72A
monochromatic
#201145 #371E76 #4E2AA7 #693FCF #8F70DB

Accessibility & contrast

On white

9.49
#4E2AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4E2AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2AA7
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2AA7#FFFFFF#000000##FFFFFF
##4E2AA71.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#0042A5
Tritanopia (blue-blind)
#2C4C66
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e2aa7;
/* rgb */ color: rgb(78, 42, 167);
/* oklch */ color: oklch(41.4% 0.186 288.7);
Tailwind
colors: {
  custom: {
    50: '#8967c2',
    500: '#4e2aa7',
    950: '#000000',
  },
}
SCSS
$custom: #4e2aa7;
$custom-light: #8967c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2aa7",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 167
  },
  "hsl": {
    "h": 257.28,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41376,
    "c": 0.18562,
    "h": 288.7
  },
  "luminance": 0.06066
}

Semantic roles & 50–950 ramp

primary
#4E2AA7
secondary
#A9C26B
accent
#E345B5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4E2AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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