#4D1577#4D1577

#4D1577 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.154 H 305.3°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#4D1577
RGBrgb(77, 21, 119)
HSLhsl(274, 70%, 27%)
HSVhsv(274, 82%, 47%)
CMYKcmyk(35.3%, 82.4%, 0%, 53.3%)
CIE-LABlab(21.75, 43.40, -44.20)
CIE-LCHlch(21.75, 61.95, 314.48°)
OKLaboklab(34.52% 0.0891 -0.1259)
OKLCHoklch(34.52% 0.154 305.3)
XYZxyz(6.6578, 3.4461, 17.7636)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1577 #3F7715
analogous
#1C1577 #4D1577 #771570
triadic
#4D1577 #774D15 #15774D
tetradic
#4D1577 #771C15 #3F7715 #157077
square
#4D1577 #771C15 #3F7715 #157077
split-complementary
#4D1577 #707715 #15771C
monochromatic
#11051A #2B0C43 #4D1577 #6F1EAB #902DDA

Accessibility & contrast

On white

12.43
#4D1577 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4D1577 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1577
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1577#FFFFFF#000000##FFFFFF
##4D15771.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337A
Deuteranopia (green-blind)
#003475
Tritanopia (blue-blind)
#452F46
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4d1577;
/* rgb */ color: rgb(77, 21, 119);
/* oklch */ color: oklch(34.5% 0.154 305.3);
Tailwind
colors: {
  custom: {
    50: '#845a9f',
    500: '#4d1577',
    950: '#000000',
  },
}
SCSS
$custom: #4d1577;
$custom-light: #845a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1577",
  "rgb": {
    "r": 77,
    "g": 21,
    "b": 119
  },
  "hsl": {
    "h": 274.286,
    "s": 70,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34518,
    "c": 0.15426,
    "h": 305.3
  },
  "luminance": 0.03446
}

Semantic roles & 50–950 ramp

primary
#4D1577
secondary
#6CAD3B
accent
#ED3B87
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4D1577

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

Preview Lab → · Contrast checker → · Palette generator →

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