#4D124D#4D124D

#4D124D is a dark, moderate purple. Relative luminance 0.025; OKLCH L 30.9% C 0.116 H 327.9°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#4D124D
RGBrgb(77, 18, 77)
HSLhsl(300, 62%, 19%)
HSVhsv(300, 77%, 30%)
CMYKcmyk(0%, 76.6%, 0%, 69.8%)
CIE-LABlab(18.13, 35.33, -22.29)
CIE-LCHlch(18.13, 41.77, 327.75°)
OKLaboklab(30.94% 0.0985 -0.0617)
OKLCHoklch(30.94% 0.116 327.9)
XYZxyz(4.6164, 2.5465, 7.2681)
Luminance0.0255 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D124D #124D12
analogous
#2F124D #4D124D #4D122F
triadic
#4D124D #4D4D12 #124D4D
tetradic
#4D124D #4D2F12 #124D12 #122F4D
square
#4D124D #4D2F12 #124D12 #122F4D
split-complementary
#4D124D #2F4D12 #124D2F
monochromatic
#190619 #1B061B #4D124D #7F1E7F #B029B0

Accessibility & contrast

On white

13.91
#4D124D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#4D124D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D124D
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D124D#FFFFFF#000000##FFFFFF
##4D124D1.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08274F
Deuteranopia (green-blind)
#212F4B
Tritanopia (blue-blind)
#501B2E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4d124d;
/* rgb */ color: rgb(77, 18, 77);
/* oklch */ color: oklch(30.9% 0.116 327.9);
Tailwind
colors: {
  custom: {
    50: '#81567f',
    500: '#4d124d',
    950: '#000000',
  },
}
SCSS
$custom: #4d124d;
$custom-light: #81567f;
$custom-dark: #000000;
JSON
{
  "hex": "#4d124d",
  "rgb": {
    "r": 77,
    "g": 18,
    "b": 77
  },
  "hsl": {
    "h": 300,
    "s": 62.105,
    "l": 18.627
  },
  "oklch": {
    "l": 0.30944,
    "c": 0.11625,
    "h": 327.9
  },
  "luminance": 0.02546
}

Semantic roles & 50–950 ramp

primary
#4D124D
secondary
#358635
accent
#E54343
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4D124D

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

Preview Lab → · Contrast checker → · Palette generator →

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