#4D115D#4D115D

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

Color values

HEX#4D115D
RGBrgb(77, 17, 93)
HSLhsl(287, 69%, 22%)
HSVhsv(287, 82%, 36%)
CMYKcmyk(17.2%, 81.7%, 0%, 63.5%)
CIE-LABlab(19.09, 38.98, -31.53)
CIE-LCHlch(19.09, 50.14, 321.03°)
OKLaboklab(31.99% 0.0985 -0.0887)
OKLCHoklch(31.99% 0.133 318)
XYZxyz(5.2365, 2.7692, 10.6125)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D115D #215D11
analogous
#27115D #4D115D #5D1147
triadic
#4D115D #5D4D11 #115D4D
tetradic
#4D115D #5D2711 #215D11 #11475D
square
#4D115D #5D2711 #215D11 #11475D
split-complementary
#4D115D #475D11 #115D27
monochromatic
#15051A #220829 #4D115D #781A91 #A324C4

Accessibility & contrast

On white

13.52
#4D115D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#4D115D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D115D
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D115D#FFFFFF#000000##FFFFFF
##4D115D1.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5F
Deuteranopia (green-blind)
#14305B
Tritanopia (blue-blind)
#4C2136
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4d115d;
/* rgb */ color: rgb(77, 17, 93);
/* oklch */ color: oklch(32.0% 0.133 318.0);
Tailwind
colors: {
  custom: {
    50: '#82578b',
    500: '#4d115d',
    950: '#000000',
  },
}
SCSS
$custom: #4d115d;
$custom-light: #82578b;
$custom-dark: #000000;
JSON
{
  "hex": "#4d115d",
  "rgb": {
    "r": 77,
    "g": 17,
    "b": 93
  },
  "hsl": {
    "h": 287.368,
    "s": 69.091,
    "l": 21.569
  },
  "oklch": {
    "l": 0.31988,
    "c": 0.13256,
    "h": 318
  },
  "luminance": 0.02769
}

Semantic roles & 50–950 ramp

primary
#4D115D
secondary
#499634
accent
#EC3C61
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4D115D

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

Preview Lab → · Contrast checker → · Palette generator →

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