#4D135E#4D135E

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

Color values

HEX#4D135E
RGBrgb(77, 19, 94)
HSLhsl(286, 66%, 22%)
HSVhsv(286, 80%, 37%)
CMYKcmyk(18.1%, 79.8%, 0%, 63.1%)
CIE-LABlab(19.44, 38.42, -31.64)
CIE-LCHlch(19.44, 49.77, 320.53°)
OKLaboklab(32.26% 0.0964 -0.089)
OKLCHoklch(32.26% 0.131 317.3)
XYZxyz(5.3135, 2.8519, 10.8581)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D135E #245E13
analogous
#28135E #4D135E #5E134A
triadic
#4D135E #5E4D13 #135E4D
tetradic
#4D135E #5E2813 #245E13 #134A5E
square
#4D135E #5E2813 #245E13 #134A5E
split-complementary
#4D135E #4A5E13 #135E28
monochromatic
#150519 #23092B #4D135E #771D91 #A028C4

Accessibility & contrast

On white

13.37
#4D135E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D135E
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D135E#FFFFFF#000000##FFFFFF
##4D135E1.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C60
Deuteranopia (green-blind)
#15315C
Tritanopia (blue-blind)
#4C2337
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4d135e;
/* rgb */ color: rgb(77, 19, 94);
/* oklch */ color: oklch(32.3% 0.131 317.3);
Tailwind
colors: {
  custom: {
    50: '#82588c',
    500: '#4d135e',
    950: '#000000',
  },
}
SCSS
$custom: #4d135e;
$custom-light: #82588c;
$custom-dark: #000000;
JSON
{
  "hex": "#4d135e",
  "rgb": {
    "r": 77,
    "g": 19,
    "b": 94
  },
  "hsl": {
    "h": 286.4,
    "s": 66.372,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32256,
    "c": 0.13119,
    "h": 317.3
  },
  "luminance": 0.02852
}

Semantic roles & 50–950 ramp

primary
#4D135E
secondary
#4C9637
accent
#E93F65
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4D135E

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

Preview Lab → · Contrast checker → · Palette generator →

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