#4D1B77#4D1B77

#4D1B77 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.148 H 304.4°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#4D1B77
RGBrgb(77, 27, 119)
HSLhsl(273, 63%, 29%)
HSVhsv(273, 77%, 47%)
CMYKcmyk(35.3%, 77.3%, 0%, 53.3%)
CIE-LABlab(22.63, 40.86, -42.76)
CIE-LCHlch(22.63, 59.15, 313.70°)
OKLaboklab(35.14% 0.0835 -0.1217)
OKLCHoklch(35.14% 0.148 304.4)
XYZxyz(6.7815, 3.6936, 17.8049)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1B77 #45771B
analogous
#1F1B77 #4D1B77 #771B73
triadic
#4D1B77 #774D1B #1B774D
tetradic
#4D1B77 #771F1B #45771B #1B7377
square
#4D1B77 #771F1B #45771B #1B7377
split-complementary
#4D1B77 #73771B #1B771F
monochromatic
#100619 #2D1045 #4D1B77 #6D26A9 #8D3AD2

Accessibility & contrast

On white

12.08
#4D1B77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1B77
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1B77#FFFFFF#000000##FFFFFF
##4D1B771.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357A
Deuteranopia (green-blind)
#003675
Tritanopia (blue-blind)
#453248
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4d1b77;
/* rgb */ color: rgb(77, 27, 119);
/* oklch */ color: oklch(35.1% 0.148 304.4);
Tailwind
colors: {
  custom: {
    50: '#835d9f',
    500: '#4d1b77',
    950: '#000000',
  },
}
SCSS
$custom: #4d1b77;
$custom-light: #835d9f;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1b77",
  "rgb": {
    "r": 77,
    "g": 27,
    "b": 119
  },
  "hsl": {
    "h": 272.609,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35138,
    "c": 0.14764,
    "h": 304.4
  },
  "luminance": 0.03694
}

Semantic roles & 50–950 ramp

primary
#4D1B77
secondary
#72AB42
accent
#E6428D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D1B77

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

Preview Lab → · Contrast checker → · Palette generator →

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