#4E2AAD#4E2AAD

#4E2AAD is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.193 H 287.5°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#4E2AAD
RGBrgb(78, 42, 173)
HSLhsl(256, 61%, 42%)
HSVhsv(256, 76%, 68%)
CMYKcmyk(54.9%, 75.7%, 0%, 32.2%)
CIE-LABlab(30.14, 48.50, -63.85)
CIE-LCHlch(30.14, 80.19, 307.22°)
OKLaboklab(41.94% 0.0579 -0.1837)
OKLCHoklch(41.94% 0.193 287.5)
XYZxyz(11.5104, 6.2922, 40.1351)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2AAD #89AD2A
analogous
#2A47AD #4E2AAD #902AAD
triadic
#4E2AAD #AD4E2A #2AAD4E
tetradic
#4E2AAD #AD2A47 #89AD2A #2AAD90
square
#4E2AAD #AD2A47 #89AD2A #2AAD90
split-complementary
#4E2AAD #AD902A #47AD2A
monochromatic
#22124B #381E7C #4E2AAD #6A43D1 #9174DD

Accessibility & contrast

On white

9.30
#4E2AAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4E2AAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2AAD
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2AAD#FFFFFF#000000##FFFFFF
##4E2AAD1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB1
Deuteranopia (green-blind)
#0043AB
Tritanopia (blue-blind)
#264F6A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e2aad;
/* rgb */ color: rgb(78, 42, 173);
/* oklch */ color: oklch(41.9% 0.193 287.5);
Tailwind
colors: {
  custom: {
    50: '#8a68c7',
    500: '#4e2aad',
    950: '#000000',
  },
}
SCSS
$custom: #4e2aad;
$custom-light: #8a68c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2aad",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 173
  },
  "hsl": {
    "h": 256.489,
    "s": 60.93,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41942,
    "c": 0.19262,
    "h": 287.5
  },
  "luminance": 0.06293
}

Semantic roles & 50–950 ramp

primary
#4E2AAD
secondary
#ADC56E
accent
#E444B8
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E2AAD

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

Preview Lab → · Contrast checker → · Palette generator →

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