#4D1481#4D1481

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

Color values

HEX#4D1481
RGBrgb(77, 20, 129)
HSLhsl(271, 73%, 29%)
HSVhsv(271, 84%, 51%)
CMYKcmyk(40.3%, 84.5%, 0%, 49.4%)
CIE-LABlab(22.52, 46.21, -49.29)
CIE-LCHlch(22.52, 67.57, 313.15°)
OKLaboklab(35.34% 0.0868 -0.1409)
OKLCHoklch(35.34% 0.165 301.6)
XYZxyz(7.2722, 3.6630, 21.0885)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1481 #488114
analogous
#171481 #4D1481 #81147F
triadic
#4D1481 #814D14 #14814D
tetradic
#4D1481 #811714 #488114 #147F81
square
#4D1481 #811714 #488114 #147F81
split-complementary
#4D1481 #7F8114 #148117
monochromatic
#10041A #2D0C4C #4D1481 #6D1CB6 #8C30DF

Accessibility & contrast

On white

12.12
#4D1481 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1481
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1481#FFFFFF#000000##FFFFFF
##4D14811.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.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: #4d1481;
/* rgb */ color: rgb(77, 20, 129);
/* oklch */ color: oklch(35.3% 0.165 301.6);
Tailwind
colors: {
  custom: {
    50: '#855aa6',
    500: '#4d1481',
    950: '#000000',
  },
}
SCSS
$custom: #4d1481;
$custom-light: #855aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1481",
  "rgb": {
    "r": 77,
    "g": 20,
    "b": 129
  },
  "hsl": {
    "h": 271.376,
    "s": 73.154,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35337,
    "c": 0.16546,
    "h": 301.6
  },
  "luminance": 0.03663
}

Semantic roles & 50–950 ramp

primary
#4D1481
secondary
#76B63B
accent
#F03890
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4D1481

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

Preview Lab → · Contrast checker → · Palette generator →

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