#4E2579#4E2579

#4E2579 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.7% C 0.137 H 302.5°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#4E2579
RGBrgb(78, 37, 121)
HSLhsl(269, 53%, 31%)
HSVhsv(269, 69%, 47%)
CMYKcmyk(35.5%, 69.4%, 0%, 52.5%)
CIE-LABlab(24.71, 36.60, -40.65)
CIE-LCHlch(24.71, 54.70, 312.00°)
OKLaboklab(36.7% 0.0736 -0.1156)
OKLCHoklch(36.7% 0.137 302.5)
XYZxyz(7.2538, 4.3233, 18.5378)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2579 #507925
analogous
#252679 #4E2579 #782579
triadic
#4E2579 #794E25 #25794E
tetradic
#4E2579 #792526 #507925 #257978
square
#4E2579 #792526 #507925 #257978
split-complementary
#4E2579 #797825 #267925
monochromatic
#12081B #30174A #4E2579 #6C33A8 #8B4FC9

Accessibility & contrast

On white

11.26
#4E2579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4E2579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2579
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2579#FFFFFF#000000##FFFFFF
##4E25791.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7C
Deuteranopia (green-blind)
#013A77
Tritanopia (blue-blind)
#45384B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e2579;
/* rgb */ color: rgb(78, 37, 121);
/* oklch */ color: oklch(36.7% 0.137 302.5);
Tailwind
colors: {
  custom: {
    50: '#8363a0',
    500: '#4e2579',
    950: '#000000',
  },
}
SCSS
$custom: #4e2579;
$custom-light: #8363a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2579",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 121
  },
  "hsl": {
    "h": 269.286,
    "s": 53.165,
    "l": 30.98
  },
  "oklch": {
    "l": 0.367,
    "c": 0.13703,
    "h": 302.5
  },
  "luminance": 0.04323
}

Semantic roles & 50–950 ramp

primary
#4E2579
secondary
#7EAB4E
accent
#DD4B96
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050F
muted
#7C7A7E

Preview Lab

Preview with #4E2579

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

Preview Lab → · Contrast checker → · Palette generator →

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