#4D135C#4D135C

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

Color values

HEX#4D135C
RGBrgb(77, 19, 92)
HSLhsl(288, 66%, 22%)
HSVhsv(288, 79%, 36%)
CMYKcmyk(16.3%, 79.3%, 0%, 63.9%)
CIE-LABlab(19.29, 37.99, -30.55)
CIE-LCHlch(19.29, 48.75, 321.20°)
OKLaboklab(32.1% 0.0966 -0.0858)
OKLCHoklch(32.1% 0.129 318.4)
XYZxyz(5.2249, 2.8165, 10.3916)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D135C #225C13
analogous
#29135C #4D135C #5C1347
triadic
#4D135C #5C4D13 #135C4D
tetradic
#4D135C #5C2913 #225C13 #13475C
square
#4D135C #5C2913 #225C13 #13475C
split-complementary
#4D135C #475C13 #135C29
monochromatic
#150519 #230929 #4D135C #771D8F #A228C1

Accessibility & contrast

On white

13.43
#4D135C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D135C
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D135C#FFFFFF#000000##FFFFFF
##4D135C1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5E
Deuteranopia (green-blind)
#17315A
Tritanopia (blue-blind)
#4D2236
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4d135c;
/* rgb */ color: rgb(77, 19, 92);
/* oklch */ color: oklch(32.1% 0.129 318.4);
Tailwind
colors: {
  custom: {
    50: '#82588b',
    500: '#4d135c',
    950: '#000000',
  },
}
SCSS
$custom: #4d135c;
$custom-light: #82588b;
$custom-dark: #000000;
JSON
{
  "hex": "#4d135c",
  "rgb": {
    "r": 77,
    "g": 19,
    "b": 92
  },
  "hsl": {
    "h": 287.671,
    "s": 65.766,
    "l": 21.765
  },
  "oklch": {
    "l": 0.32105,
    "c": 0.12923,
    "h": 318.4
  },
  "luminance": 0.02816
}

Semantic roles & 50–950 ramp

primary
#4D135C
secondary
#4A9437
accent
#E93F62
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4D135C

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

Preview Lab → · Contrast checker → · Palette generator →

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