#4D135B#4D135B

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

Color values

HEX#4D135B
RGBrgb(77, 19, 91)
HSLhsl(288, 65%, 22%)
HSVhsv(288, 79%, 36%)
CMYKcmyk(15.4%, 79.1%, 0%, 64.3%)
CIE-LABlab(19.22, 37.77, -30.00)
CIE-LCHlch(19.22, 48.24, 321.55°)
OKLaboklab(32.03% 0.0967 -0.0842)
OKLCHoklch(32.03% 0.128 319)
XYZxyz(5.1815, 2.7991, 10.1629)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D135B #215B13
analogous
#29135B #4D135B #5B1345
triadic
#4D135B #5B4D13 #135B4D
tetradic
#4D135B #5B2913 #215B13 #13455B
square
#4D135B #5B2913 #215B13 #13455B
split-complementary
#4D135B #455B13 #135B29
monochromatic
#150519 #220828 #4D135B #781E8E #A328C0

Accessibility & contrast

On white

13.46
#4D135B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D135B
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D135B#FFFFFF#000000##FFFFFF
##4D135B1.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5D
Deuteranopia (green-blind)
#183059
Tritanopia (blue-blind)
#4D2236
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4d135b;
/* rgb */ color: rgb(77, 19, 91);
/* oklch */ color: oklch(32.0% 0.128 319.0);
Tailwind
colors: {
  custom: {
    50: '#82588a',
    500: '#4d135b',
    950: '#000000',
  },
}
SCSS
$custom: #4d135b;
$custom-light: #82588a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d135b",
  "rgb": {
    "r": 77,
    "g": 19,
    "b": 91
  },
  "hsl": {
    "h": 288.333,
    "s": 65.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.3203,
    "c": 0.12825,
    "h": 319
  },
  "luminance": 0.02799
}

Semantic roles & 50–950 ramp

primary
#4D135B
secondary
#499337
accent
#E83F60
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4D135B

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

Preview Lab → · Contrast checker → · Palette generator →

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