#4E2AAA#4E2AAA

#4E2AAA is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.189 H 288.1°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#4E2AAA
RGBrgb(78, 42, 170)
HSLhsl(257, 60%, 42%)
HSVhsv(257, 75%, 67%)
CMYKcmyk(54.1%, 75.3%, 0%, 33.3%)
CIE-LABlab(29.86, 47.65, -62.52)
CIE-LCHlch(29.86, 78.60, 307.31°)
OKLaboklab(41.66% 0.0587 -0.1798)
OKLCHoklch(41.66% 0.189 288.1)
XYZxyz(11.2234, 6.1773, 38.6234)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2AAA #86AA2A
analogous
#2A46AA #4E2AAA #8E2AAA
triadic
#4E2AAA #AA4E2A #2AAA4E
tetradic
#4E2AAA #AA2A46 #86AA2A #2AAA8E
square
#4E2AAA #AA2A46 #86AA2A #2AAA8E
split-complementary
#4E2AAA #AA8E2A #46AA2A
monochromatic
#211248 #371E79 #4E2AAA #6941D0 #9072DC

Accessibility & contrast

On white

9.39
#4E2AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4E2AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2AAA
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2AAA#FFFFFF#000000##FFFFFF
##4E2AAA1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AE
Deuteranopia (green-blind)
#0043A8
Tritanopia (blue-blind)
#294D68
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e2aaa;
/* rgb */ color: rgb(78, 42, 170);
/* oklch */ color: oklch(41.7% 0.189 288.1);
Tailwind
colors: {
  custom: {
    50: '#8a68c4',
    500: '#4e2aaa',
    950: '#000000',
  },
}
SCSS
$custom: #4e2aaa;
$custom-light: #8a68c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2aaa",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 256.875,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41658,
    "c": 0.18913,
    "h": 288.1
  },
  "luminance": 0.06178
}

Semantic roles & 50–950 ramp

primary
#4E2AAA
secondary
#ABC36C
accent
#E444B7
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E2AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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