#4D1D79#4D1D79

#4D1D79 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.147 H 303.3°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#4D1D79
RGBrgb(77, 29, 121)
HSLhsl(271, 61%, 29%)
HSVhsv(271, 76%, 47%)
CMYKcmyk(36.4%, 76%, 0%, 52.5%)
CIE-LABlab(23.13, 40.44, -43.24)
CIE-LCHlch(23.13, 59.20, 313.09°)
OKLaboklab(35.54% 0.081 -0.1231)
OKLCHoklch(35.54% 0.147 303.3)
XYZxyz(6.9503, 3.8370, 18.4599)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1D79 #49791D
analogous
#1F1D79 #4D1D79 #791D77
triadic
#4D1D79 #794D1D #1D794D
tetradic
#4D1D79 #791F1D #49791D #1D7779
square
#4D1D79 #791F1D #49791D #1D7779
split-complementary
#4D1D79 #77791D #1D791F
monochromatic
#100619 #2E1148 #4D1D79 #6C29AA #8B3FD1

Accessibility & contrast

On white

11.88
#4D1D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4D1D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1D79
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1D79#FFFFFF#000000##FFFFFF
##4D1D791.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d1d79;
/* rgb */ color: rgb(77, 29, 121);
/* oklch */ color: oklch(35.5% 0.147 303.3);
Tailwind
colors: {
  custom: {
    50: '#835ea0',
    500: '#4d1d79',
    950: '#000000',
  },
}
SCSS
$custom: #4d1d79;
$custom-light: #835ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1d79",
  "rgb": {
    "r": 77,
    "g": 29,
    "b": 121
  },
  "hsl": {
    "h": 271.304,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35539,
    "c": 0.14742,
    "h": 303.3
  },
  "luminance": 0.03837
}

Semantic roles & 50–950 ramp

primary
#4D1D79
secondary
#77AD45
accent
#E44390
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4D1D79

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

Preview Lab → · Contrast checker → · Palette generator →

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