#4E2A84#4E2A84

#4E2A84 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.143 H 297.6°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#4E2A84
RGBrgb(78, 42, 132)
HSLhsl(264, 52%, 34%)
HSVhsv(264, 68%, 52%)
CMYKcmyk(40.9%, 68.2%, 0%, 48.2%)
CIE-LABlab(26.57, 36.86, -44.59)
CIE-LCHlch(26.57, 57.85, 309.58°)
OKLaboklab(38.3% 0.0664 -0.1272)
OKLCHoklch(38.3% 0.143 297.6)
XYZxyz(8.1336, 4.9414, 22.3506)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A84 #60842A
analogous
#2A3384 #4E2A84 #7B2A84
triadic
#4E2A84 #844E2A #2A844E
tetradic
#4E2A84 #842A33 #60842A #2A847B
square
#4E2A84 #842A33 #60842A #2A847B
split-complementary
#4E2A84 #847B2A #33842A
monochromatic
#170C27 #331B56 #4E2A84 #6939B2 #895DCB

Accessibility & contrast

On white

10.56
#4E2A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4E2A84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A84
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A84#FFFFFF#000000##FFFFFF
##4E2A841.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F87
Deuteranopia (green-blind)
#003E82
Tritanopia (blue-blind)
#413F53
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4e2a84;
/* rgb */ color: rgb(78, 42, 132);
/* oklch */ color: oklch(38.3% 0.143 297.6);
Tailwind
colors: {
  custom: {
    50: '#8466a8',
    500: '#4e2a84',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a84;
$custom-light: #8466a8;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a84",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 132
  },
  "hsl": {
    "h": 264,
    "s": 51.724,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38303,
    "c": 0.14343,
    "h": 297.6
  },
  "luminance": 0.04942
}

Semantic roles & 50–950 ramp

primary
#4E2A84
secondary
#8EB159
accent
#DB4DA2
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2A84

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

Preview Lab → · Contrast checker → · Palette generator →

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