#4D115B#4D115B

#4D115B is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.8% C 0.131 H 319.1°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#4D115B
RGBrgb(77, 17, 91)
HSLhsl(289, 69%, 21%)
HSVhsv(289, 81%, 36%)
CMYKcmyk(15.4%, 81.3%, 0%, 64.3%)
CIE-LABlab(18.95, 38.56, -30.44)
CIE-LCHlch(18.95, 49.12, 321.71°)
OKLaboklab(31.84% 0.0988 -0.0855)
OKLCHoklch(31.84% 0.131 319.1)
XYZxyz(5.1491, 2.7343, 10.1520)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D115B #1F5B11
analogous
#28115B #4D115B #5B1144
triadic
#4D115B #5B4D11 #115B4D
tetradic
#4D115B #5B2811 #1F5B11 #11445B
square
#4D115B #5B2811 #1F5B11 #11445B
split-complementary
#4D115B #445B11 #115B28
monochromatic
#16051A #210727 #4D115B #791B8F #A424C2

Accessibility & contrast

On white

13.58
#4D115B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D115B
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D115B#FFFFFF#000000##FFFFFF
##4D115B1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5D
Deuteranopia (green-blind)
#163059
Tritanopia (blue-blind)
#4D2135
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4d115b;
/* rgb */ color: rgb(77, 17, 91);
/* oklch */ color: oklch(31.8% 0.131 319.1);
Tailwind
colors: {
  custom: {
    50: '#82578a',
    500: '#4d115b',
    950: '#000000',
  },
}
SCSS
$custom: #4d115b;
$custom-light: #82578a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d115b",
  "rgb": {
    "r": 77,
    "g": 17,
    "b": 91
  },
  "hsl": {
    "h": 288.649,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31835,
    "c": 0.13065,
    "h": 319.1
  },
  "luminance": 0.02734
}

Semantic roles & 50–950 ramp

primary
#4D115B
secondary
#469434
accent
#EB3C5E
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4D115B

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

Preview Lab → · Contrast checker → · Palette generator →

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