#4E2AA6#4E2AA6

#4E2AA6 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.184 H 288.9°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#4E2AA6
RGBrgb(78, 42, 166)
HSLhsl(257, 60%, 41%)
HSVhsv(257, 75%, 65%)
CMYKcmyk(53%, 74.7%, 0%, 34.9%)
CIE-LABlab(29.48, 46.50, -60.72)
CIE-LCHlch(29.48, 76.48, 307.45°)
OKLaboklab(41.28% 0.0597 -0.1745)
OKLCHoklch(41.28% 0.184 288.9)
XYZxyz(10.8508, 6.0283, 36.6608)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2AA6 #82A62A
analogous
#2A44A6 #4E2AA6 #8C2AA6
triadic
#4E2AA6 #A64E2A #2AA64E
tetradic
#4E2AA6 #A62A44 #82A62A #2AA68C
square
#4E2AA6 #A62A44 #82A62A #2AA68C
split-complementary
#4E2AA6 #A68C2A #44A62A
monochromatic
#201144 #371E75 #4E2AA6 #683FCE #8F70DB

Accessibility & contrast

On white

9.52
#4E2AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2AA6
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2AA6#FFFFFF#000000##FFFFFF
##4E2AA61.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#0042A4
Tritanopia (blue-blind)
#2C4C66
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e2aa6;
/* rgb */ color: rgb(78, 42, 166);
/* oklch */ color: oklch(41.3% 0.184 288.9);
Tailwind
colors: {
  custom: {
    50: '#8967c1',
    500: '#4e2aa6',
    950: '#000000',
  },
}
SCSS
$custom: #4e2aa6;
$custom-light: #8967c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2aa6",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 257.419,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41282,
    "c": 0.18446,
    "h": 288.9
  },
  "luminance": 0.06029
}

Semantic roles & 50–950 ramp

primary
#4E2AA6
secondary
#A8C26A
accent
#E345B5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #4E2AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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