#4D0C4F#4D0C4F

#4D0C4F is a dark, vivid purple. Relative luminance 0.024; OKLCH L 30.5% C 0.125 H 326.8°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#4D0C4F
RGBrgb(77, 12, 79)
HSLhsl(298, 74%, 18%)
HSVhsv(298, 85%, 31%)
CMYKcmyk(2.5%, 84.8%, 0%, 69%)
CIE-LABlab(17.49, 37.92, -24.68)
CIE-LCHlch(17.49, 45.24, 326.95°)
OKLaboklab(30.53% 0.1047 -0.0686)
OKLCHoklch(30.53% 0.125 326.8)
XYZxyz(4.6032, 2.4056, 7.6175)
Luminance0.0240 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D0C4F #0E4F0C
analogous
#2B0C4F #4D0C4F #4F0C2F
triadic
#4D0C4F #4F4D0C #0C4F4D
tetradic
#4D0C4F #4F2B0C #0E4F0C #0C2F4F
square
#4D0C4F #4F2B0C #0E4F0C #0C2F4F
split-complementary
#4D0C4F #2F4F0C #0C4F2B
monochromatic
#1A041B #1A041B #4D0C4F #811484 #B51CB9

Accessibility & contrast

On white

14.18
#4D0C4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#4D0C4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D0C4F
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D0C4F#FFFFFF#000000##FFFFFF
##4D0C4F1.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002651
Deuteranopia (green-blind)
#1D2E4D
Tritanopia (blue-blind)
#4F182D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #4d0c4f;
/* rgb */ color: rgb(77, 12, 79);
/* oklch */ color: oklch(30.5% 0.125 326.8);
Tailwind
colors: {
  custom: {
    50: '#825481',
    500: '#4d0c4f',
    950: '#000000',
  },
}
SCSS
$custom: #4d0c4f;
$custom-light: #825481;
$custom-dark: #000000;
JSON
{
  "hex": "#4d0c4f",
  "rgb": {
    "r": 77,
    "g": 12,
    "b": 79
  },
  "hsl": {
    "h": 298.209,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.30528,
    "c": 0.12518,
    "h": 326.8
  },
  "luminance": 0.02405
}

Semantic roles & 50–950 ramp

primary
#4D0C4F
secondary
#2F8B2C
accent
#F0383D
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4D0C4F

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

Preview Lab → · Contrast checker → · Palette generator →

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