#4D1566#4D1566

#4D1566 is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.1% C 0.137 H 312.9°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#4D1566
RGBrgb(77, 21, 102)
HSLhsl(281, 66%, 24%)
HSVhsv(281, 79%, 40%)
CMYKcmyk(24.5%, 79.4%, 0%, 60%)
CIE-LABlab(20.34, 39.39, -35.48)
CIE-LCHlch(20.34, 53.01, 317.99°)
OKLaboklab(33.08% 0.0931 -0.1003)
OKLCHoklch(33.08% 0.137 312.9)
XYZxyz(5.7266, 3.0736, 12.8594)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1566 #2E6615
analogous
#241566 #4D1566 #661557
triadic
#4D1566 #664D15 #15664D
tetradic
#4D1566 #662415 #2E6615 #155766
square
#4D1566 #662415 #2E6615 #155766
split-complementary
#4D1566 #576615 #156624
monochromatic
#130519 #270B33 #4D1566 #731F99 #9A2ACC

Accessibility & contrast

On white

13.01
#4D1566 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#4D1566 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1566
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1566#FFFFFF#000000##FFFFFF
##4D15661.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E68
Deuteranopia (green-blind)
#0B3264
Tritanopia (blue-blind)
#4A283C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4d1566;
/* rgb */ color: rgb(77, 21, 102);
/* oklch */ color: oklch(33.1% 0.137 312.9);
Tailwind
colors: {
  custom: {
    50: '#825992',
    500: '#4d1566',
    950: '#000000',
  },
}
SCSS
$custom: #4d1566;
$custom-light: #825992;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1566",
  "rgb": {
    "r": 77,
    "g": 21,
    "b": 102
  },
  "hsl": {
    "h": 281.481,
    "s": 65.854,
    "l": 24.118
  },
  "oklch": {
    "l": 0.33084,
    "c": 0.13681,
    "h": 312.9
  },
  "luminance": 0.03073
}

Semantic roles & 50–950 ramp

primary
#4D1566
secondary
#589D3A
accent
#E93F73
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4D1566

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

Preview Lab → · Contrast checker → · Palette generator →

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