#4D124A#4D124A

#4D124A is a dark, moderate purple. Relative luminance 0.025; OKLCH L 30.8% C 0.114 H 330.1°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#4D124A
RGBrgb(77, 18, 74)
HSLhsl(303, 62%, 19%)
HSVhsv(303, 77%, 30%)
CMYKcmyk(0%, 76.6%, 3.9%, 69.8%)
CIE-LABlab(17.94, 34.75, -20.53)
CIE-LCHlch(17.94, 40.36, 329.43°)
OKLaboklab(30.75% 0.0984 -0.0566)
OKLCHoklch(30.75% 0.114 330.1)
XYZxyz(4.5129, 2.5051, 6.7231)
Luminance0.0250 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D124A #124D15
analogous
#32124D #4D124A #4D122C
triadic
#4D124A #4A4D12 #124A4D
tetradic
#4D124A #4D3212 #124D15 #122C4D
square
#4D124A #4D3212 #124D15 #122C4D
split-complementary
#4D124A #2C4D12 #124D32
monochromatic
#190618 #1B061A #4D124A #7F1E7A #B029A9

Accessibility & contrast

On white

13.99
#4D124A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#4D124A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D124A
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D124A#FFFFFF#000000##FFFFFF
##4D124A1.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C274C
Deuteranopia (green-blind)
#232F49
Tritanopia (blue-blind)
#50192C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4d124a;
/* rgb */ color: rgb(77, 18, 74);
/* oklch */ color: oklch(30.8% 0.114 330.1);
Tailwind
colors: {
  custom: {
    50: '#81567d',
    500: '#4d124a',
    950: '#000000',
  },
}
SCSS
$custom: #4d124a;
$custom-light: #81567d;
$custom-dark: #000000;
JSON
{
  "hex": "#4d124a",
  "rgb": {
    "r": 77,
    "g": 18,
    "b": 74
  },
  "hsl": {
    "h": 303.051,
    "s": 62.105,
    "l": 18.627
  },
  "oklch": {
    "l": 0.30751,
    "c": 0.11353,
    "h": 330.1
  },
  "luminance": 0.02505
}

Semantic roles & 50–950 ramp

primary
#4D124A
secondary
#358639
accent
#E54B43
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #4D124A

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

Preview Lab → · Contrast checker → · Palette generator →

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