#4E1479#4E1479

#4E1479 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.158 H 305.2°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#4E1479
RGBrgb(78, 20, 121)
HSLhsl(274, 72%, 28%)
HSVhsv(274, 83%, 47%)
CMYKcmyk(35.5%, 83.5%, 0%, 52.5%)
CIE-LABlab(21.95, 44.44, -45.15)
CIE-LCHlch(21.95, 63.35, 314.54°)
OKLaboklab(34.74% 0.0909 -0.1287)
OKLCHoklch(34.74% 0.158 305.2)
XYZxyz(6.8424, 3.5005, 18.4007)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1479 #3F7914
analogous
#1B1479 #4E1479 #791472
triadic
#4E1479 #794E14 #14794E
tetradic
#4E1479 #791B14 #3F7914 #147279
square
#4E1479 #791B14 #3F7914 #147279
split-complementary
#4E1479 #727914 #14791B
monochromatic
#11041A #2C0B44 #4E1479 #701DAE #912BDC

Accessibility & contrast

On white

12.35
#4E1479 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4E1479 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1479
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1479#FFFFFF#000000##FFFFFF
##4E14791.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#003577
Tritanopia (blue-blind)
#462F47
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e1479;
/* rgb */ color: rgb(78, 20, 121);
/* oklch */ color: oklch(34.7% 0.158 305.2);
Tailwind
colors: {
  custom: {
    50: '#855aa1',
    500: '#4e1479',
    950: '#000000',
  },
}
SCSS
$custom: #4e1479;
$custom-light: #855aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1479",
  "rgb": {
    "r": 78,
    "g": 20,
    "b": 121
  },
  "hsl": {
    "h": 274.455,
    "s": 71.631,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34743,
    "c": 0.15752,
    "h": 305.2
  },
  "luminance": 0.035
}

Semantic roles & 50–950 ramp

primary
#4E1479
secondary
#6CAF3A
accent
#EE3986
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4E1479

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

Preview Lab → · Contrast checker → · Palette generator →

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