#4D1A79#4D1A79

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

Color values

HEX#4D1A79
RGBrgb(77, 26, 121)
HSLhsl(272, 65%, 29%)
HSVhsv(272, 79%, 47%)
CMYKcmyk(36.4%, 78.5%, 0%, 52.5%)
CIE-LABlab(22.64, 41.82, -44.02)
CIE-LCHlch(22.64, 60.71, 313.53°)
OKLaboklab(35.2% 0.084 -0.1254)
OKLCHoklch(35.2% 0.151 303.8)
XYZxyz(6.8804, 3.6971, 18.4366)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1A79 #46791A
analogous
#1E1A79 #4D1A79 #791A76
triadic
#4D1A79 #794D1A #1A794D
tetradic
#4D1A79 #791E1A #46791A #1A7679
square
#4D1A79 #791E1A #46791A #1A7679
split-complementary
#4D1A79 #76791A #1A791E
monochromatic
#100519 #2D0F47 #4D1A79 #6D25AB #8C39D4

Accessibility & contrast

On white

12.07
#4D1A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1A79
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1A79#FFFFFF#000000##FFFFFF
##4D1A791.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d1a79;
/* rgb */ color: rgb(77, 26, 121);
/* oklch */ color: oklch(35.2% 0.151 303.8);
Tailwind
colors: {
  custom: {
    50: '#845ca0',
    500: '#4d1a79',
    950: '#000000',
  },
}
SCSS
$custom: #4d1a79;
$custom-light: #845ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1a79",
  "rgb": {
    "r": 77,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 272.211,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35199,
    "c": 0.15098,
    "h": 303.8
  },
  "luminance": 0.03697
}

Semantic roles & 50–950 ramp

primary
#4D1A79
secondary
#73AD41
accent
#E8408E
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D1A79

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

Preview Lab → · Contrast checker → · Palette generator →

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