#4D1576#4D1576

#4D1576 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.153 H 305.7°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#4D1576
RGBrgb(77, 21, 118)
HSLhsl(275, 70%, 27%)
HSVhsv(275, 82%, 46%)
CMYKcmyk(34.7%, 82.2%, 0%, 53.7%)
CIE-LABlab(21.66, 43.16, -43.70)
CIE-LCHlch(21.66, 61.42, 314.64°)
OKLaboklab(34.43% 0.0894 -0.1245)
OKLCHoklch(34.43% 0.153 305.7)
XYZxyz(6.5980, 3.4222, 17.4490)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1576 #3E7615
analogous
#1C1576 #4D1576 #76156F
triadic
#4D1576 #764D15 #15764D
tetradic
#4D1576 #761C15 #3E7615 #156F76
square
#4D1576 #761C15 #3E7615 #156F76
split-complementary
#4D1576 #6F7615 #15761C
monochromatic
#11051A #2B0C42 #4D1576 #6F1EAA #902CD9

Accessibility & contrast

On white

12.47
#4D1576 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4D1576 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1576
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1576#FFFFFF#000000##FFFFFF
##4D15761.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#003474
Tritanopia (blue-blind)
#452F46
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4d1576;
/* rgb */ color: rgb(77, 21, 118);
/* oklch */ color: oklch(34.4% 0.153 305.7);
Tailwind
colors: {
  custom: {
    50: '#845a9e',
    500: '#4d1576',
    950: '#000000',
  },
}
SCSS
$custom: #4d1576;
$custom-light: #845a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1576",
  "rgb": {
    "r": 77,
    "g": 21,
    "b": 118
  },
  "hsl": {
    "h": 274.639,
    "s": 69.784,
    "l": 27.255
  },
  "oklch": {
    "l": 0.3443,
    "c": 0.15322,
    "h": 305.7
  },
  "luminance": 0.03422
}

Semantic roles & 50–950 ramp

primary
#4D1576
secondary
#6BAC3B
accent
#ED3B86
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D1576

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

Preview Lab → · Contrast checker → · Palette generator →

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