#4E1979#4E1979

#4E1979 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.152 H 304.6°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#4E1979
RGBrgb(78, 25, 121)
HSLhsl(273, 66%, 29%)
HSVhsv(273, 79%, 47%)
CMYKcmyk(35.5%, 79.3%, 0%, 52.5%)
CIE-LABlab(22.64, 42.44, -44.02)
CIE-LCHlch(22.64, 61.15, 313.95°)
OKLaboklab(35.23% 0.0865 -0.1254)
OKLCHoklch(35.23% 0.152 304.6)
XYZxyz(6.9399, 3.6955, 18.4331)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1979 #447919
analogous
#1E1979 #4E1979 #791974
triadic
#4E1979 #794E19 #19794E
tetradic
#4E1979 #791E19 #447919 #197479
square
#4E1979 #791E19 #447919 #197479
split-complementary
#4E1979 #747919 #19791E
monochromatic
#100519 #2D0F46 #4E1979 #6F23AC #8E37D6

Accessibility & contrast

On white

12.08
#4E1979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4E1979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1979
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1979#FFFFFF#000000##FFFFFF
##4E19791.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e1979;
/* rgb */ color: rgb(78, 25, 121);
/* oklch */ color: oklch(35.2% 0.152 304.6);
Tailwind
colors: {
  custom: {
    50: '#845ca0',
    500: '#4e1979',
    950: '#000000',
  },
}
SCSS
$custom: #4e1979;
$custom-light: #845ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1979",
  "rgb": {
    "r": 78,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 273.125,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35226,
    "c": 0.15233,
    "h": 304.6
  },
  "luminance": 0.03695
}

Semantic roles & 50–950 ramp

primary
#4E1979
secondary
#71AE40
accent
#E93F8B
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4E1979

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

Preview Lab → · Contrast checker → · Palette generator →

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