#4D135F#4D135F

#4D135F is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.3% C 0.132 H 316.7°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#4D135F
RGBrgb(77, 19, 95)
HSLhsl(286, 67%, 22%)
HSVhsv(286, 80%, 37%)
CMYKcmyk(18.9%, 80%, 0%, 62.7%)
CIE-LABlab(19.52, 38.64, -32.18)
CIE-LCHlch(19.52, 50.29, 320.21°)
OKLaboklab(32.33% 0.0962 -0.0906)
OKLCHoklch(32.33% 0.132 316.7)
XYZxyz(5.3587, 2.8700, 11.0959)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D135F #255F13
analogous
#27135F #4D135F #5F134B
triadic
#4D135F #5F4D13 #135F4D
tetradic
#4D135F #5F2713 #255F13 #134B5F
square
#4D135F #5F2713 #255F13 #134B5F
split-complementary
#4D135F #4B5F13 #135F27
monochromatic
#15051A #24092C #4D135F #761D92 #A027C5

Accessibility & contrast

On white

13.34
#4D135F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D135F
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D135F#FFFFFF#000000##FFFFFF
##4D135F1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C61
Deuteranopia (green-blind)
#14315D
Tritanopia (blue-blind)
#4C2338
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4d135f;
/* rgb */ color: rgb(77, 19, 95);
/* oklch */ color: oklch(32.3% 0.132 316.7);
Tailwind
colors: {
  custom: {
    50: '#82588d',
    500: '#4d135f',
    950: '#000000',
  },
}
SCSS
$custom: #4d135f;
$custom-light: #82588d;
$custom-dark: #000000;
JSON
{
  "hex": "#4d135f",
  "rgb": {
    "r": 77,
    "g": 19,
    "b": 95
  },
  "hsl": {
    "h": 285.789,
    "s": 66.667,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32333,
    "c": 0.13218,
    "h": 316.7
  },
  "luminance": 0.0287
}

Semantic roles & 50–950 ramp

primary
#4D135F
secondary
#4E9737
accent
#EA3E67
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4D135F

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

Preview Lab → · Contrast checker → · Palette generator →

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