#4D1581#4D1581

#4D1581 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.165 H 301.5°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#4D1581
RGBrgb(77, 21, 129)
HSLhsl(271, 72%, 29%)
HSVhsv(271, 84%, 51%)
CMYKcmyk(40.3%, 83.7%, 0%, 49.4%)
CIE-LABlab(22.65, 45.84, -49.09)
CIE-LCHlch(22.65, 67.17, 313.04°)
OKLaboklab(35.42% 0.086 -0.1403)
OKLCHoklch(35.42% 0.165 301.5)
XYZxyz(7.2902, 3.6990, 21.0945)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1581 #498115
analogous
#171581 #4D1581 #81157F
triadic
#4D1581 #814D15 #15814D
tetradic
#4D1581 #811715 #498115 #157F81
square
#4D1581 #811715 #498115 #157F81
split-complementary
#4D1581 #7F8115 #158117
monochromatic
#10041A #2E0C4C #4D1581 #6C1EB6 #8B33DE

Accessibility & contrast

On white

12.07
#4D1581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1581
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1581#FFFFFF#000000##FFFFFF
##4D15811.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#00357F
Tritanopia (blue-blind)
#41334C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4d1581;
/* rgb */ color: rgb(77, 21, 129);
/* oklch */ color: oklch(35.4% 0.165 301.5);
Tailwind
colors: {
  custom: {
    50: '#855ba6',
    500: '#4d1581',
    950: '#000000',
  },
}
SCSS
$custom: #4d1581;
$custom-light: #855ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1581",
  "rgb": {
    "r": 77,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 271.111,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35424,
    "c": 0.16456,
    "h": 301.5
  },
  "luminance": 0.03699
}

Semantic roles & 50–950 ramp

primary
#4D1581
secondary
#77B63C
accent
#EF3991
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4D1581

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

Preview Lab → · Contrast checker → · Palette generator →

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