#4D1C79#4D1C79

#4D1C79 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.149 H 303.5°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#4D1C79
RGBrgb(77, 28, 121)
HSLhsl(272, 62%, 29%)
HSVhsv(272, 77%, 47%)
CMYKcmyk(36.4%, 76.9%, 0%, 52.5%)
CIE-LABlab(22.96, 40.91, -43.50)
CIE-LCHlch(22.96, 59.72, 313.24°)
OKLaboklab(35.42% 0.0821 -0.1239)
OKLCHoklch(35.42% 0.149 303.5)
XYZxyz(6.9262, 3.7888, 18.4519)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1C79 #48791C
analogous
#1F1C79 #4D1C79 #791C77
triadic
#4D1C79 #794D1C #1C794D
tetradic
#4D1C79 #791F1C #48791C #1C7779
square
#4D1C79 #791F1C #48791C #1C7779
split-complementary
#4D1C79 #77791C #1C791F
monochromatic
#100619 #2D1047 #4D1C79 #6D28AB #8C3DD2

Accessibility & contrast

On white

11.95
#4D1C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4D1C79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1C79
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1C79#FFFFFF#000000##FFFFFF
##4D1C791.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d1c79;
/* rgb */ color: rgb(77, 28, 121);
/* oklch */ color: oklch(35.4% 0.149 303.5);
Tailwind
colors: {
  custom: {
    50: '#835da0',
    500: '#4d1c79',
    950: '#000000',
  },
}
SCSS
$custom: #4d1c79;
$custom-light: #835da0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1c79",
  "rgb": {
    "r": 77,
    "g": 28,
    "b": 121
  },
  "hsl": {
    "h": 271.613,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35422,
    "c": 0.14864,
    "h": 303.5
  },
  "luminance": 0.03789
}

Semantic roles & 50–950 ramp

primary
#4D1C79
secondary
#76AD44
accent
#E54290
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4D1C79

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

Preview Lab → · Contrast checker → · Palette generator →

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