#4D1A77#4D1A77

#4D1A77 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.149 H 304.6°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#4D1A77
RGBrgb(77, 26, 119)
HSLhsl(273, 64%, 28%)
HSVhsv(273, 78%, 47%)
CMYKcmyk(35.3%, 78.2%, 0%, 53.3%)
CIE-LABlab(22.47, 41.32, -43.02)
CIE-LCHlch(22.47, 59.65, 313.84°)
OKLaboklab(35.03% 0.0845 -0.1225)
OKLCHoklch(35.03% 0.149 304.6)
XYZxyz(6.7590, 3.6485, 17.7973)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1A77 #44771A
analogous
#1E1A77 #4D1A77 #771A72
triadic
#4D1A77 #774D1A #1A774D
tetradic
#4D1A77 #771E1A #44771A #1A7277
square
#4D1A77 #771E1A #44771A #1A7277
split-complementary
#4D1A77 #72771A #1A771E
monochromatic
#100519 #2C0F45 #4D1A77 #6D25A9 #8D38D3

Accessibility & contrast

On white

12.14
#4D1A77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4D1A77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1A77
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1A77#FFFFFF#000000##FFFFFF
##4D1A771.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d1a77;
/* rgb */ color: rgb(77, 26, 119);
/* oklch */ color: oklch(35.0% 0.149 304.6);
Tailwind
colors: {
  custom: {
    50: '#835c9f',
    500: '#4d1a77',
    950: '#000000',
  },
}
SCSS
$custom: #4d1a77;
$custom-light: #835c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1a77",
  "rgb": {
    "r": 77,
    "g": 26,
    "b": 119
  },
  "hsl": {
    "h": 272.903,
    "s": 64.138,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35027,
    "c": 0.14881,
    "h": 304.6
  },
  "luminance": 0.03648
}

Semantic roles & 50–950 ramp

primary
#4D1A77
secondary
#71AC41
accent
#E7418C
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D1A77

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

Preview Lab → · Contrast checker → · Palette generator →

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