#4E2078#4E2078

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

Color values

HEX#4E2078
RGBrgb(78, 32, 120)
HSLhsl(271, 58%, 30%)
HSVhsv(271, 73%, 47%)
CMYKcmyk(35%, 73.3%, 0%, 52.9%)
CIE-LABlab(23.70, 38.94, -41.66)
CIE-LCHlch(23.70, 57.02, 313.07°)
OKLaboklab(35.95% 0.0795 -0.1185)
OKLCHoklch(35.95% 0.143 303.9)
XYZxyz(7.0478, 4.0088, 18.1681)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2078 #4A7820
analogous
#222078 #4E2078 #782076
triadic
#4E2078 #784E20 #20784E
tetradic
#4E2078 #782220 #4A7820 #207678
square
#4E2078 #782220 #4A7820 #207678
split-complementary
#4E2078 #767820 #207822
monochromatic
#100618 #2F1348 #4E2078 #6D2DA8 #8C45CD

Accessibility & contrast

On white

11.66
#4E2078 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4E2078 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2078
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2078#FFFFFF#000000##FFFFFF
##4E20781.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#003876
Tritanopia (blue-blind)
#463549
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e2078;
/* rgb */ color: rgb(78, 32, 120);
/* oklch */ color: oklch(36.0% 0.143 303.9);
Tailwind
colors: {
  custom: {
    50: '#8460a0',
    500: '#4e2078',
    950: '#000000',
  },
}
SCSS
$custom: #4e2078;
$custom-light: #8460a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2078",
  "rgb": {
    "r": 78,
    "g": 32,
    "b": 120
  },
  "hsl": {
    "h": 271.364,
    "s": 57.895,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35952,
    "c": 0.14271,
    "h": 303.9
  },
  "luminance": 0.04009
}

Semantic roles & 50–950 ramp

primary
#4E2078
secondary
#78AB48
accent
#E14790
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4E2078

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

Preview Lab → · Contrast checker → · Palette generator →

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