#4E2079#4E2079

#4E2079 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.144 H 303.5°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#4E2079
RGBrgb(78, 32, 121)
HSLhsl(271, 58%, 30%)
HSVhsv(271, 74%, 47%)
CMYKcmyk(35.5%, 73.6%, 0%, 52.5%)
CIE-LABlab(23.78, 39.19, -42.16)
CIE-LCHlch(23.78, 57.57, 312.91°)
OKLaboklab(36.03% 0.0794 -0.12)
OKLCHoklch(36.03% 0.144 303.5)
XYZxyz(7.1088, 4.0332, 18.4894)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2079 #4B7920
analogous
#212079 #4E2079 #792078
triadic
#4E2079 #794E20 #20794E
tetradic
#4E2079 #792120 #4B7920 #207879
square
#4E2079 #792120 #4B7920 #207879
split-complementary
#4E2079 #787920 #207921
monochromatic
#100618 #2F1349 #4E2079 #6D2DA9 #8C45CE

Accessibility & contrast

On white

11.62
#4E2079 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4E2079 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2079
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2079#FFFFFF#000000##FFFFFF
##4E20791.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#003877
Tritanopia (blue-blind)
#45354A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e2079;
/* rgb */ color: rgb(78, 32, 121);
/* oklch */ color: oklch(36.0% 0.144 303.5);
Tailwind
colors: {
  custom: {
    50: '#8460a0',
    500: '#4e2079',
    950: '#000000',
  },
}
SCSS
$custom: #4e2079;
$custom-light: #8460a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2079",
  "rgb": {
    "r": 78,
    "g": 32,
    "b": 121
  },
  "hsl": {
    "h": 271.011,
    "s": 58.17,
    "l": 30
  },
  "oklch": {
    "l": 0.36034,
    "c": 0.14385,
    "h": 303.5
  },
  "luminance": 0.04033
}

Semantic roles & 50–950 ramp

primary
#4E2079
secondary
#79AC49
accent
#E14691
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4E2079

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

Preview Lab → · Contrast checker → · Palette generator →

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