#4D1B79#4D1B79

#4D1B79 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.150 H 303.7°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#4D1B79
RGBrgb(77, 27, 121)
HSLhsl(272, 64%, 29%)
HSVhsv(272, 78%, 47%)
CMYKcmyk(36.4%, 77.7%, 0%, 52.5%)
CIE-LABlab(22.80, 41.37, -43.77)
CIE-LCHlch(22.80, 60.22, 313.39°)
OKLaboklab(35.31% 0.0831 -0.1247)
OKLCHoklch(35.31% 0.15 303.7)
XYZxyz(6.9029, 3.7421, 18.4441)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1B79 #47791B
analogous
#1E1B79 #4D1B79 #791B76
triadic
#4D1B79 #794D1B #1B794D
tetradic
#4D1B79 #791E1B #47791B #1B7679
square
#4D1B79 #791E1B #47791B #1B7679
split-complementary
#4D1B79 #76791B #1B791E
monochromatic
#100619 #2D1047 #4D1B79 #6D26AB #8C3BD3

Accessibility & contrast

On white

12.01
#4D1B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4D1B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1B79
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1B79#FFFFFF#000000##FFFFFF
##4D1B791.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d1b79;
/* rgb */ color: rgb(77, 27, 121);
/* oklch */ color: oklch(35.3% 0.150 303.7);
Tailwind
colors: {
  custom: {
    50: '#835da0',
    500: '#4d1b79',
    950: '#000000',
  },
}
SCSS
$custom: #4d1b79;
$custom-light: #835da0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1b79",
  "rgb": {
    "r": 77,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 271.915,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35309,
    "c": 0.14982,
    "h": 303.7
  },
  "luminance": 0.03742
}

Semantic roles & 50–950 ramp

primary
#4D1B79
secondary
#74AD43
accent
#E7418F
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D1B79

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

Preview Lab → · Contrast checker → · Palette generator →

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