#4D1571#4D1571

#4D1571 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.148 H 307.8°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#4D1571
RGBrgb(77, 21, 113)
HSLhsl(277, 69%, 26%)
HSVhsv(277, 81%, 44%)
CMYKcmyk(31.9%, 81.4%, 0%, 55.7%)
CIE-LABlab(21.23, 41.96, -41.18)
CIE-LCHlch(21.23, 58.79, 315.54°)
OKLaboklab(34% 0.0907 -0.1171)
OKLCHoklch(34% 0.148 307.8)
XYZxyz(6.3087, 3.3065, 15.9254)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1571 #397115
analogous
#1F1571 #4D1571 #711567
triadic
#4D1571 #714D15 #15714D
tetradic
#4D1571 #711F15 #397115 #156771
square
#4D1571 #711F15 #397115 #156771
split-complementary
#4D1571 #677115 #15711F
monochromatic
#12051A #2A0B3D #4D1571 #701FA5 #9329D7

Accessibility & contrast

On white

12.64
#4D1571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4D1571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1571
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1571#FFFFFF#000000##FFFFFF
##4D15711.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003174
Deuteranopia (green-blind)
#00336F
Tritanopia (blue-blind)
#472C43
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4d1571;
/* rgb */ color: rgb(77, 21, 113);
/* oklch */ color: oklch(34.0% 0.148 307.8);
Tailwind
colors: {
  custom: {
    50: '#835a9a',
    500: '#4d1571',
    950: '#000000',
  },
}
SCSS
$custom: #4d1571;
$custom-light: #835a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1571",
  "rgb": {
    "r": 77,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 276.522,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.33996,
    "c": 0.14808,
    "h": 307.8
  },
  "luminance": 0.03306
}

Semantic roles & 50–950 ramp

primary
#4D1571
secondary
#65A73B
accent
#EB3C81
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D1571

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

Preview Lab → · Contrast checker → · Palette generator →

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