#4D1148#4D1148

#4D1148 is a dark, moderate purple. Relative luminance 0.024; OKLCH L 30.5% C 0.113 H 331.6°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#4D1148
RGBrgb(77, 17, 72)
HSLhsl(305, 64%, 18%)
HSVhsv(305, 78%, 30%)
CMYKcmyk(0%, 77.9%, 6.5%, 69.8%)
CIE-LABlab(17.68, 34.79, -19.57)
CIE-LCHlch(17.68, 39.92, 330.64°)
OKLaboklab(30.52% 0.0995 -0.0538)
OKLCHoklch(30.52% 0.113 331.6)
XYZxyz(4.4307, 2.4469, 6.3686)
Luminance0.0245 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1148 #114D16
analogous
#34114D #4D1148 #4D112A
triadic
#4D1148 #484D11 #11484D
tetradic
#4D1148 #4D3411 #114D16 #112A4D
square
#4D1148 #4D3411 #114D16 #112A4D
split-complementary
#4D1148 #2A4D11 #114D34
monochromatic
#190617 #1B0619 #4D1148 #7F1C77 #B127A6

Accessibility & contrast

On white

14.10
#4D1148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#4D1148 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1148
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1148#FFFFFF#000000##FFFFFF
##4D11481.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D264A
Deuteranopia (green-blind)
#242E47
Tritanopia (blue-blind)
#50182B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #4d1148;
/* rgb */ color: rgb(77, 17, 72);
/* oklch */ color: oklch(30.5% 0.113 331.6);
Tailwind
colors: {
  custom: {
    50: '#81567b',
    500: '#4d1148',
    950: '#000000',
  },
}
SCSS
$custom: #4d1148;
$custom-light: #81567b;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1148",
  "rgb": {
    "r": 77,
    "g": 17,
    "b": 72
  },
  "hsl": {
    "h": 305,
    "s": 63.83,
    "l": 18.431
  },
  "oklch": {
    "l": 0.30521,
    "c": 0.11312,
    "h": 331.6
  },
  "luminance": 0.02447
}

Semantic roles & 50–950 ramp

primary
#4D1148
secondary
#33863A
accent
#E74F41
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #4D1148

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

Preview Lab → · Contrast checker → · Palette generator →

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