#4E1978#4E1978

#4E1978 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.151 H 305.0°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#4E1978
RGBrgb(78, 25, 120)
HSLhsl(273, 66%, 28%)
HSVhsv(273, 79%, 47%)
CMYKcmyk(35%, 79.2%, 0%, 52.9%)
CIE-LABlab(22.55, 42.19, -43.52)
CIE-LCHlch(22.55, 60.62, 314.11°)
OKLaboklab(35.14% 0.0867 -0.1239)
OKLCHoklch(35.14% 0.151 305)
XYZxyz(6.8789, 3.6711, 18.1119)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1978 #437819
analogous
#1F1978 #4E1978 #781972
triadic
#4E1978 #784E19 #19784E
tetradic
#4E1978 #781F19 #437819 #197278
square
#4E1978 #781F19 #437819 #197278
split-complementary
#4E1978 #727819 #19781F
monochromatic
#100519 #2D0E45 #4E1978 #6F24AB #8F36D5

Accessibility & contrast

On white

12.11
#4E1978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4E1978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1978
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1978#FFFFFF#000000##FFFFFF
##4E19781.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357B
Deuteranopia (green-blind)
#003676
Tritanopia (blue-blind)
#463148
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e1978;
/* rgb */ color: rgb(78, 25, 120);
/* oklch */ color: oklch(35.1% 0.151 305.0);
Tailwind
colors: {
  custom: {
    50: '#845ca0',
    500: '#4e1978',
    950: '#000000',
  },
}
SCSS
$custom: #4e1978;
$custom-light: #845ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1978",
  "rgb": {
    "r": 78,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 273.474,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3514,
    "c": 0.15127,
    "h": 305
  },
  "luminance": 0.03671
}

Semantic roles & 50–950 ramp

primary
#4E1978
secondary
#70AD40
accent
#E83F8A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4E1978

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

Preview Lab → · Contrast checker → · Palette generator →

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