#4D1157#4D1157

#4D1157 is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.5% C 0.127 H 321.5°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#4D1157
RGBrgb(77, 17, 87)
HSLhsl(291, 67%, 20%)
HSVhsv(291, 80%, 34%)
CMYKcmyk(11.5%, 80.5%, 0%, 65.9%)
CIE-LABlab(18.66, 37.72, -28.22)
CIE-LCHlch(18.66, 47.11, 323.20°)
OKLaboklab(31.54% 0.0992 -0.079)
OKLCHoklch(31.54% 0.127 321.5)
XYZxyz(4.9811, 2.6671, 9.2674)
Luminance0.0267 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1157 #1B5711
analogous
#2A1157 #4D1157 #57113E
triadic
#4D1157 #574D11 #11574D
tetradic
#4D1157 #572A11 #1B5711 #113E57
square
#4D1157 #572A11 #1B5711 #113E57
split-complementary
#4D1157 #3E5711 #11572A
monochromatic
#17051A #200724 #4D1157 #7A1B8A #A825BD

Accessibility & contrast

On white

13.70
#4D1157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#4D1157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1157
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1157#FFFFFF#000000##FFFFFF
##4D11571.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002959
Deuteranopia (green-blind)
#1A3055
Tritanopia (blue-blind)
#4E1F33
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4d1157;
/* rgb */ color: rgb(77, 17, 87);
/* oklch */ color: oklch(31.5% 0.127 321.5);
Tailwind
colors: {
  custom: {
    50: '#825787',
    500: '#4d1157',
    950: '#000000',
  },
}
SCSS
$custom: #4d1157;
$custom-light: #825787;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1157",
  "rgb": {
    "r": 77,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 291.429,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.31539,
    "c": 0.12684,
    "h": 321.5
  },
  "luminance": 0.02667
}

Semantic roles & 50–950 ramp

primary
#4D1157
secondary
#419034
accent
#EA3E56
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4D1157

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

Preview Lab → · Contrast checker → · Palette generator →

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