#4E2AAC#4E2AAC

#4E2AAC is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.191 H 287.7°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#4E2AAC
RGBrgb(78, 42, 172)
HSLhsl(257, 61%, 42%)
HSVhsv(257, 76%, 67%)
CMYKcmyk(54.7%, 75.6%, 0%, 32.5%)
CIE-LABlab(30.04, 48.22, -63.41)
CIE-LCHlch(30.04, 79.66, 307.25°)
OKLaboklab(41.85% 0.0582 -0.1824)
OKLCHoklch(41.85% 0.191 287.7)
XYZxyz(11.4140, 6.2536, 39.6274)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2AAC #88AC2A
analogous
#2A47AC #4E2AAC #8F2AAC
triadic
#4E2AAC #AC4E2A #2AAC4E
tetradic
#4E2AAC #AC2A47 #88AC2A #2AAC8F
square
#4E2AAC #AC2A47 #88AC2A #2AAC8F
split-complementary
#4E2AAC #AC8F2A #47AC2A
monochromatic
#21124A #381E7B #4E2AAC #6A42D1 #9173DD

Accessibility & contrast

On white

9.33
#4E2AAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4E2AAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2AAC
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2AAC#FFFFFF#000000##FFFFFF
##4E2AAC1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB0
Deuteranopia (green-blind)
#0043AA
Tritanopia (blue-blind)
#274E69
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e2aac;
/* rgb */ color: rgb(78, 42, 172);
/* oklch */ color: oklch(41.8% 0.191 287.7);
Tailwind
colors: {
  custom: {
    50: '#8a68c6',
    500: '#4e2aac',
    950: '#000000',
  },
}
SCSS
$custom: #4e2aac;
$custom-light: #8a68c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2aac",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 172
  },
  "hsl": {
    "h": 256.615,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41847,
    "c": 0.19146,
    "h": 287.7
  },
  "luminance": 0.06254
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E2AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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