#4D1159#4D1159

#4D1159 is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.7% C 0.129 H 320.3°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#4D1159
RGBrgb(77, 17, 89)
HSLhsl(290, 68%, 21%)
HSVhsv(290, 81%, 35%)
CMYKcmyk(13.5%, 80.9%, 0%, 65.1%)
CIE-LABlab(18.80, 38.14, -29.33)
CIE-LCHlch(18.80, 48.12, 322.44°)
OKLaboklab(31.69% 0.099 -0.0822)
OKLCHoklch(31.69% 0.129 320.3)
XYZxyz(5.0640, 2.7002, 9.7037)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1159 #1D5911
analogous
#291159 #4D1159 #591141
triadic
#4D1159 #594D11 #11594D
tetradic
#4D1159 #592911 #1D5911 #114159
square
#4D1159 #592911 #1D5911 #114159
split-complementary
#4D1159 #415911 #115929
monochromatic
#16051A #210726 #4D1159 #791B8C #A625C0

Accessibility & contrast

On white

13.64
#4D1159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#4D1159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1159
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1159#FFFFFF#000000##FFFFFF
##4D11591.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5B
Deuteranopia (green-blind)
#183057
Tritanopia (blue-blind)
#4D2034
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4d1159;
/* rgb */ color: rgb(77, 17, 89);
/* oklch */ color: oklch(31.7% 0.129 320.3);
Tailwind
colors: {
  custom: {
    50: '#825788',
    500: '#4d1159',
    950: '#000000',
  },
}
SCSS
$custom: #4d1159;
$custom-light: #825788;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1159",
  "rgb": {
    "r": 77,
    "g": 17,
    "b": 89
  },
  "hsl": {
    "h": 290,
    "s": 67.925,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31686,
    "c": 0.12873,
    "h": 320.3
  },
  "luminance": 0.027
}

Semantic roles & 50–950 ramp

primary
#4D1159
secondary
#449234
accent
#EB3D5A
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4D1159

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

Preview Lab → · Contrast checker → · Palette generator →

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