#4D124F#4D124F

#4D124F is a dark, moderate purple. Relative luminance 0.026; OKLCH L 31.1% C 0.118 H 326.6°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#4D124F
RGBrgb(77, 18, 79)
HSLhsl(298, 63%, 19%)
HSVhsv(298, 77%, 31%)
CMYKcmyk(2.5%, 77.2%, 0%, 69%)
CIE-LABlab(18.26, 35.72, -23.45)
CIE-LCHlch(18.26, 42.73, 326.71°)
OKLaboklab(31.08% 0.0985 -0.0651)
OKLCHoklch(31.08% 0.118 326.6)
XYZxyz(4.6881, 2.5752, 7.6458)
Luminance0.0257 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D124F #144F12
analogous
#2F124F #4D124F #4F1233
triadic
#4D124F #4F4D12 #124F4D
tetradic
#4D124F #4F2F12 #144F12 #12334F
square
#4D124F #4F2F12 #144F12 #12334F
split-complementary
#4D124F #334F12 #124F2F
monochromatic
#180619 #1C071D #4D124F #7E1D81 #AE29B3

Accessibility & contrast

On white

13.86
#4D124F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#4D124F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D124F
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D124F#FFFFFF#000000##FFFFFF
##4D124F1.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052851
Deuteranopia (green-blind)
#202F4D
Tritanopia (blue-blind)
#4F1C2F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4d124f;
/* rgb */ color: rgb(77, 18, 79);
/* oklch */ color: oklch(31.1% 0.118 326.6);
Tailwind
colors: {
  custom: {
    50: '#815780',
    500: '#4d124f',
    950: '#000000',
  },
}
SCSS
$custom: #4d124f;
$custom-light: #815780;
$custom-dark: #000000;
JSON
{
  "hex": "#4d124f",
  "rgb": {
    "r": 77,
    "g": 18,
    "b": 79
  },
  "hsl": {
    "h": 298.033,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.31077,
    "c": 0.11809,
    "h": 326.6
  },
  "luminance": 0.02575
}

Semantic roles & 50–950 ramp

primary
#4D124F
secondary
#388835
accent
#E64247
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4D124F

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

Preview Lab → · Contrast checker → · Palette generator →

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