#4D1A78#4D1A78

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

Color values

HEX#4D1A78
RGBrgb(77, 26, 120)
HSLhsl(273, 64%, 29%)
HSVhsv(273, 78%, 47%)
CMYKcmyk(35.8%, 78.3%, 0%, 52.9%)
CIE-LABlab(22.56, 41.56, -43.52)
CIE-LCHlch(22.56, 60.18, 313.68°)
OKLaboklab(35.11% 0.0843 -0.124)
OKLCHoklch(35.11% 0.15 304.2)
XYZxyz(6.8193, 3.6727, 18.1153)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1A78 #45781A
analogous
#1E1A78 #4D1A78 #781A74
triadic
#4D1A78 #784D1A #1A784D
tetradic
#4D1A78 #781E1A #45781A #1A7478
square
#4D1A78 #781E1A #45781A #1A7478
split-complementary
#4D1A78 #74781A #1A781E
monochromatic
#100519 #2D0F46 #4D1A78 #6D25AA #8D38D4

Accessibility & contrast

On white

12.11
#4D1A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1A78
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1A78#FFFFFF#000000##FFFFFF
##4D1A781.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d1a78;
/* rgb */ color: rgb(77, 26, 120);
/* oklch */ color: oklch(35.1% 0.150 304.2);
Tailwind
colors: {
  custom: {
    50: '#835ca0',
    500: '#4d1a78',
    950: '#000000',
  },
}
SCSS
$custom: #4d1a78;
$custom-light: #835ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1a78",
  "rgb": {
    "r": 77,
    "g": 26,
    "b": 120
  },
  "hsl": {
    "h": 272.553,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35113,
    "c": 0.1499,
    "h": 304.2
  },
  "luminance": 0.03673
}

Semantic roles & 50–950 ramp

primary
#4D1A78
secondary
#72AC41
accent
#E7408D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4D1A78

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

Preview Lab → · Contrast checker → · Palette generator →

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