#4D115E#4D115E

#4D115E is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.1% C 0.134 H 317.5°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#4D115E
RGBrgb(77, 17, 94)
HSLhsl(287, 69%, 22%)
HSVhsv(287, 82%, 37%)
CMYKcmyk(18.1%, 81.9%, 0%, 63.1%)
CIE-LABlab(19.17, 39.20, -32.08)
CIE-LCHlch(19.17, 50.65, 320.71°)
OKLaboklab(32.07% 0.0984 -0.0903)
OKLCHoklch(32.07% 0.134 317.5)
XYZxyz(5.2811, 2.7871, 10.8473)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D115E #225E11
analogous
#27115E #4D115E #5E1149
triadic
#4D115E #5E4D11 #115E4D
tetradic
#4D115E #5E2711 #225E11 #11495E
square
#4D115E #5E2711 #225E11 #11495E
split-complementary
#4D115E #495E11 #115E27
monochromatic
#15051A #23082A #4D115E #771A92 #A224C6

Accessibility & contrast

On white

13.48
#4D115E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D115E
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D115E#FFFFFF#000000##FFFFFF
##4D115E1.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B60
Deuteranopia (green-blind)
#13305C
Tritanopia (blue-blind)
#4C2237
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4d115e;
/* rgb */ color: rgb(77, 17, 94);
/* oklch */ color: oklch(32.1% 0.134 317.5);
Tailwind
colors: {
  custom: {
    50: '#82578c',
    500: '#4d115e',
    950: '#000000',
  },
}
SCSS
$custom: #4d115e;
$custom-light: #82578c;
$custom-dark: #000000;
JSON
{
  "hex": "#4d115e",
  "rgb": {
    "r": 77,
    "g": 17,
    "b": 94
  },
  "hsl": {
    "h": 286.753,
    "s": 69.369,
    "l": 21.765
  },
  "oklch": {
    "l": 0.32065,
    "c": 0.13352,
    "h": 317.5
  },
  "luminance": 0.02787
}

Semantic roles & 50–950 ramp

primary
#4D115E
secondary
#4A9734
accent
#EC3C63
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4D115E

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

Preview Lab → · Contrast checker → · Palette generator →

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