#4D124C#4D124C

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

Color values

HEX#4D124C
RGBrgb(77, 18, 76)
HSLhsl(301, 62%, 19%)
HSVhsv(301, 77%, 30%)
CMYKcmyk(0%, 76.6%, 1.3%, 69.8%)
CIE-LABlab(18.07, 35.13, -21.71)
CIE-LCHlch(18.07, 41.30, 328.29°)
OKLaboklab(30.88% 0.0985 -0.06)
OKLCHoklch(30.88% 0.115 328.6)
XYZxyz(4.5813, 2.5325, 7.0836)
Luminance0.0253 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D124C #124D13
analogous
#30124D #4D124C #4D122E
triadic
#4D124C #4C4D12 #124C4D
tetradic
#4D124C #4D3012 #124D13 #122E4D
square
#4D124C #4D3012 #124D13 #122E4D
split-complementary
#4D124C #2E4D12 #124D30
monochromatic
#190618 #1B061B #4D124C #7F1E7D #B029AE

Accessibility & contrast

On white

13.94
#4D124C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D124C
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D124C#FFFFFF#000000##FFFFFF
##4D124C1.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09274E
Deuteranopia (green-blind)
#222F4A
Tritanopia (blue-blind)
#501A2D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4d124c;
/* rgb */ color: rgb(77, 18, 76);
/* oklch */ color: oklch(30.9% 0.115 328.6);
Tailwind
colors: {
  custom: {
    50: '#81567e',
    500: '#4d124c',
    950: '#000000',
  },
}
SCSS
$custom: #4d124c;
$custom-light: #81567e;
$custom-dark: #000000;
JSON
{
  "hex": "#4d124c",
  "rgb": {
    "r": 77,
    "g": 18,
    "b": 76
  },
  "hsl": {
    "h": 301.017,
    "s": 62.105,
    "l": 18.627
  },
  "oklch": {
    "l": 0.30879,
    "c": 0.11534,
    "h": 328.6
  },
  "luminance": 0.02532
}

Semantic roles & 50–950 ramp

primary
#4D124C
secondary
#358636
accent
#E54543
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4D124C

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

Preview Lab → · Contrast checker → · Palette generator →

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