#4D1558#4D1558

#4D1558 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.0% C 0.123 H 320.6°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#4D1558
RGBrgb(77, 21, 88)
HSLhsl(290, 61%, 21%)
HSVhsv(290, 76%, 35%)
CMYKcmyk(12.5%, 76.1%, 0%, 65.5%)
CIE-LABlab(19.30, 36.29, -27.86)
CIE-LCHlch(19.30, 45.75, 322.49°)
OKLaboklab(32.02% 0.0948 -0.078)
OKLCHoklch(32.02% 0.123 320.6)
XYZxyz(5.0900, 2.8190, 9.5066)
Luminance0.0282 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1558 #205815
analogous
#2C1558 #4D1558 #581542
triadic
#4D1558 #584D15 #15584D
tetradic
#4D1558 #582C15 #205815 #154258
square
#4D1558 #582C15 #205815 #154258
split-complementary
#4D1558 #425815 #15582C
monochromatic
#160619 #220927 #4D1558 #782189 #A32DBB

Accessibility & contrast

On white

13.43
#4D1558 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#4D1558 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1558
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1558#FFFFFF#000000##FFFFFF
##4D15581.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5A
Deuteranopia (green-blind)
#1C3156
Tritanopia (blue-blind)
#4D2135
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4d1558;
/* rgb */ color: rgb(77, 21, 88);
/* oklch */ color: oklch(32.0% 0.123 320.6);
Tailwind
colors: {
  custom: {
    50: '#815887',
    500: '#4d1558',
    950: '#000000',
  },
}
SCSS
$custom: #4d1558;
$custom-light: #815887;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1558",
  "rgb": {
    "r": 77,
    "g": 21,
    "b": 88
  },
  "hsl": {
    "h": 290.149,
    "s": 61.468,
    "l": 21.373
  },
  "oklch": {
    "l": 0.32021,
    "c": 0.12272,
    "h": 320.6
  },
  "luminance": 0.02819
}

Semantic roles & 50–950 ramp

primary
#4D1558
secondary
#479039
accent
#E5435E
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4D1558

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

Preview Lab → · Contrast checker → · Palette generator →

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