#4D135D#4D135D

#4D135D is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.2% C 0.130 H 317.8°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#4D135D
RGBrgb(77, 19, 93)
HSLhsl(287, 66%, 22%)
HSVhsv(287, 80%, 36%)
CMYKcmyk(17.2%, 79.6%, 0%, 63.5%)
CIE-LABlab(19.37, 38.20, -31.10)
CIE-LCHlch(19.37, 49.26, 320.86°)
OKLaboklab(32.18% 0.0965 -0.0874)
OKLCHoklch(32.18% 0.13 317.8)
XYZxyz(5.2689, 2.8341, 10.6233)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D135D #235D13
analogous
#28135D #4D135D #5D1348
triadic
#4D135D #5D4D13 #135D4D
tetradic
#4D135D #5D2813 #235D13 #13485D
square
#4D135D #5D2813 #235D13 #13485D
split-complementary
#4D135D #485D13 #135D28
monochromatic
#150519 #23092A #4D135D #771D90 #A128C3

Accessibility & contrast

On white

13.40
#4D135D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#4D135D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D135D
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D135D#FFFFFF#000000##FFFFFF
##4D135D1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5F
Deuteranopia (green-blind)
#16315B
Tritanopia (blue-blind)
#4C2337
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4d135d;
/* rgb */ color: rgb(77, 19, 93);
/* oklch */ color: oklch(32.2% 0.130 317.8);
Tailwind
colors: {
  custom: {
    50: '#82588b',
    500: '#4d135d',
    950: '#000000',
  },
}
SCSS
$custom: #4d135d;
$custom-light: #82588b;
$custom-dark: #000000;
JSON
{
  "hex": "#4d135d",
  "rgb": {
    "r": 77,
    "g": 19,
    "b": 93
  },
  "hsl": {
    "h": 287.027,
    "s": 66.071,
    "l": 21.961
  },
  "oklch": {
    "l": 0.3218,
    "c": 0.13021,
    "h": 317.8
  },
  "luminance": 0.02834
}

Semantic roles & 50–950 ramp

primary
#4D135D
secondary
#4B9537
accent
#E93F64
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4D135D

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

Preview Lab → · Contrast checker → · Palette generator →

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