#4D1580#4D1580

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

Color values

HEX#4D1580
RGBrgb(77, 21, 128)
HSLhsl(271, 72%, 29%)
HSVhsv(271, 84%, 50%)
CMYKcmyk(39.8%, 83.6%, 0%, 49.8%)
CIE-LABlab(22.56, 45.60, -48.61)
CIE-LCHlch(22.56, 66.65, 313.17°)
OKLaboklab(35.33% 0.0864 -0.1389)
OKLCHoklch(35.33% 0.164 301.9)
XYZxyz(7.2241, 3.6726, 20.7462)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1580 #488015
analogous
#181580 #4D1580 #80157E
triadic
#4D1580 #804D15 #15804D
tetradic
#4D1580 #801815 #488015 #157E80
square
#4D1580 #801815 #488015 #157E80
split-complementary
#4D1580 #7E8015 #158018
monochromatic
#10041A #2D0C4B #4D1580 #6D1EB5 #8C32DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4D1580#FFFFFF#000000##FFFFFF
##4D15801.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)
#003583
Deuteranopia (green-blind)
#00357E
Tritanopia (blue-blind)
#42334B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4d1580;
/* rgb */ color: rgb(77, 21, 128);
/* oklch */ color: oklch(35.3% 0.164 301.9);
Tailwind
colors: {
  custom: {
    50: '#855ba6',
    500: '#4d1580',
    950: '#000000',
  },
}
SCSS
$custom: #4d1580;
$custom-light: #855ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1580",
  "rgb": {
    "r": 77,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 271.402,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35332,
    "c": 0.16353,
    "h": 301.9
  },
  "luminance": 0.03673
}

Semantic roles & 50–950 ramp

primary
#4D1580
secondary
#76B53C
accent
#EF3990
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4D1580

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

Preview Lab → · Contrast checker → · Palette generator →

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