#4E2AAE#4E2AAE

#4E2AAE is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.0% C 0.194 H 287.3°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#4E2AAE
RGBrgb(78, 42, 174)
HSLhsl(256, 61%, 42%)
HSVhsv(256, 76%, 68%)
CMYKcmyk(55.2%, 75.9%, 0%, 31.8%)
CIE-LABlab(30.23, 48.79, -64.30)
CIE-LCHlch(30.23, 80.71, 307.19°)
OKLaboklab(42.04% 0.0577 -0.185)
OKLCHoklch(42.04% 0.194 287.3)
XYZxyz(11.6076, 6.3310, 40.6466)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2AAE #8AAE2A
analogous
#2A48AE #4E2AAE #902AAE
triadic
#4E2AAE #AE4E2A #2AAE4E
tetradic
#4E2AAE #AE2A48 #8AAE2A #2AAE90
square
#4E2AAE #AE2A48 #8AAE2A #2AAE90
split-complementary
#4E2AAE #AE902A #48AE2A
monochromatic
#22124B #381E7D #4E2AAE #6A43D2 #9175DE

Accessibility & contrast

On white

9.27
#4E2AAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#4E2AAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2AAE
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2AAE#FFFFFF#000000##FFFFFF
##4E2AAE1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB2
Deuteranopia (green-blind)
#0044AC
Tritanopia (blue-blind)
#254F6A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e2aae;
/* rgb */ color: rgb(78, 42, 174);
/* oklch */ color: oklch(42.0% 0.194 287.3);
Tailwind
colors: {
  custom: {
    50: '#8a68c7',
    500: '#4e2aae',
    950: '#000000',
  },
}
SCSS
$custom: #4e2aae;
$custom-light: #8a68c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2aae",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 174
  },
  "hsl": {
    "h": 256.364,
    "s": 61.111,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42037,
    "c": 0.19378,
    "h": 287.3
  },
  "luminance": 0.06332
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E2AAE

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

Preview Lab → · Contrast checker → · Palette generator →

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