#4D1E79#4D1E79

#4D1E79 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.146 H 303.2°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#4D1E79
RGBrgb(77, 30, 121)
HSLhsl(271, 60%, 30%)
HSVhsv(271, 75%, 47%)
CMYKcmyk(36.4%, 75.2%, 0%, 52.5%)
CIE-LABlab(23.29, 39.97, -42.96)
CIE-LCHlch(23.29, 58.68, 312.93°)
OKLaboklab(35.66% 0.08 -0.1223)
OKLCHoklch(35.66% 0.146 303.2)
XYZxyz(6.9752, 3.8868, 18.4682)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1E79 #4A791E
analogous
#201E79 #4D1E79 #791E78
triadic
#4D1E79 #794D1E #1E794D
tetradic
#4D1E79 #79201E #4A791E #1E7879
square
#4D1E79 #79201E #4A791E #1E7879
split-complementary
#4D1E79 #78791E #1E7920
monochromatic
#100619 #2E1248 #4D1E79 #6C2AAA #8B41D0

Accessibility & contrast

On white

11.82
#4D1E79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4D1E79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1E79
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1E79#FFFFFF#000000##FFFFFF
##4D1E791.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#003777
Tritanopia (blue-blind)
#443449
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4d1e79;
/* rgb */ color: rgb(77, 30, 121);
/* oklch */ color: oklch(35.7% 0.146 303.2);
Tailwind
colors: {
  custom: {
    50: '#835fa0',
    500: '#4d1e79',
    950: '#000000',
  },
}
SCSS
$custom: #4d1e79;
$custom-light: #835fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1e79",
  "rgb": {
    "r": 77,
    "g": 30,
    "b": 121
  },
  "hsl": {
    "h": 270.989,
    "s": 60.265,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35658,
    "c": 0.14618,
    "h": 303.2
  },
  "luminance": 0.03887
}

Semantic roles & 50–950 ramp

primary
#4D1E79
secondary
#78AD46
accent
#E34491
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4D1E79

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

Preview Lab → · Contrast checker → · Palette generator →

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