#4D1A84#4D1A84

#4D1A84 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.163 H 299.8°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#4D1A84
RGBrgb(77, 26, 132)
HSLhsl(269, 67%, 31%)
HSVhsv(269, 80%, 52%)
CMYKcmyk(41.7%, 80.3%, 0%, 48.2%)
CIE-LABlab(23.61, 44.60, -49.40)
CIE-LCHlch(23.61, 66.56, 312.08°)
OKLaboklab(36.18% 0.0811 -0.1412)
OKLCHoklch(36.18% 0.163 299.8)
XYZxyz(7.5938, 3.9824, 22.1939)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1A84 #51841A
analogous
#1A1C84 #4D1A84 #821A84
triadic
#4D1A84 #844D1A #1A844D
tetradic
#4D1A84 #841A1C #51841A #1A8482
square
#4D1A84 #841A1C #51841A #1A8482
split-complementary
#4D1A84 #84821A #1C841A
monochromatic
#11061E #2F1051 #4D1A84 #6B24B7 #893FD9

Accessibility & contrast

On white

11.69
#4D1A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4D1A84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1A84
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1A84#FFFFFF#000000##FFFFFF
##4D1A841.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003887
Deuteranopia (green-blind)
#003782
Tritanopia (blue-blind)
#40374F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d1a84;
/* rgb */ color: rgb(77, 26, 132);
/* oklch */ color: oklch(36.2% 0.163 299.8);
Tailwind
colors: {
  custom: {
    50: '#855da9',
    500: '#4d1a84',
    950: '#000000',
  },
}
SCSS
$custom: #4d1a84;
$custom-light: #855da9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1a84",
  "rgb": {
    "r": 77,
    "g": 26,
    "b": 132
  },
  "hsl": {
    "h": 268.868,
    "s": 67.089,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36179,
    "c": 0.16285,
    "h": 299.8
  },
  "luminance": 0.03983
}

Semantic roles & 50–950 ramp

primary
#4D1A84
secondary
#7FB842
accent
#EA3E97
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4D1A84

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

Preview Lab → · Contrast checker → · Palette generator →

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