#4E2479#4E2479

#4E2479 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.6% C 0.138 H 302.7°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#4E2479
RGBrgb(78, 36, 121)
HSLhsl(270, 54%, 31%)
HSVhsv(270, 70%, 47%)
CMYKcmyk(35.5%, 70.2%, 0%, 52.5%)
CIE-LABlab(24.52, 37.14, -40.97)
CIE-LCHlch(24.52, 55.29, 312.19°)
OKLaboklab(36.56% 0.0748 -0.1165)
OKLCHoklch(36.56% 0.138 302.7)
XYZxyz(7.2231, 4.2619, 18.5275)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2479 #4F7924
analogous
#242479 #4E2479 #782479
triadic
#4E2479 #794E24 #24794E
tetradic
#4E2479 #792424 #4F7924 #247978
square
#4E2479 #792424 #4F7924 #247978
split-complementary
#4E2479 #797824 #247924
monochromatic
#11081B #30164A #4E2479 #6C32A8 #8B4DCA

Accessibility & contrast

On white

11.34
#4E2479 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4E2479 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2479
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2479#FFFFFF#000000##FFFFFF
##4E24791.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397C
Deuteranopia (green-blind)
#003A77
Tritanopia (blue-blind)
#45374B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e2479;
/* rgb */ color: rgb(78, 36, 121);
/* oklch */ color: oklch(36.6% 0.138 302.7);
Tailwind
colors: {
  custom: {
    50: '#8362a0',
    500: '#4e2479',
    950: '#000000',
  },
}
SCSS
$custom: #4e2479;
$custom-light: #8362a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2479",
  "rgb": {
    "r": 78,
    "g": 36,
    "b": 121
  },
  "hsl": {
    "h": 269.647,
    "s": 54.14,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36561,
    "c": 0.13845,
    "h": 302.7
  },
  "luminance": 0.04262
}

Semantic roles & 50–950 ramp

primary
#4E2479
secondary
#7DAC4D
accent
#DE4A95
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4E2479

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

Preview Lab → · Contrast checker → · Palette generator →

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