#4C0C48#4C0C48

#4C0C48 is a dark, moderate purple. Relative luminance 0.023; OKLCH L 29.9% C 0.119 H 330.9°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#4C0C48
RGBrgb(76, 12, 72)
HSLhsl(304, 73%, 17%)
HSVhsv(304, 84%, 30%)
CMYKcmyk(0%, 84.2%, 5.3%, 70.2%)
CIE-LABlab(16.83, 36.38, -20.92)
CIE-LCHlch(16.83, 41.97, 330.11°)
OKLaboklab(29.88% 0.1036 -0.0577)
OKLCHoklch(29.88% 0.119 330.9)
XYZxyz(4.2817, 2.2677, 6.3418)
Luminance0.0227 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C0C48 #0C4C10
analogous
#300C4C #4C0C48 #4C0C28
triadic
#4C0C48 #484C0C #0C484C
tetradic
#4C0C48 #4C300C #0C4C10 #0C284C
square
#4C0C48 #4C300C #0C4C10 #0C284C
split-complementary
#4C0C48 #284C0C #0C4C30
monochromatic
#1A0419 #1A0419 #4C0C48 #81147A #B61DAC

Accessibility & contrast

On white

14.45
#4C0C48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#4C0C48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C0C48
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C0C48#FFFFFF#000000##FFFFFF
##4C0C481.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05244A
Deuteranopia (green-blind)
#212D46
Tritanopia (blue-blind)
#4F1529
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4c0c48;
/* rgb */ color: rgb(76, 12, 72);
/* oklch */ color: oklch(29.9% 0.119 330.9);
Tailwind
colors: {
  custom: {
    50: '#81547b',
    500: '#4c0c48',
    950: '#000000',
  },
}
SCSS
$custom: #4c0c48;
$custom-light: #81547b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c0c48",
  "rgb": {
    "r": 76,
    "g": 12,
    "b": 72
  },
  "hsl": {
    "h": 303.75,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.29879,
    "c": 0.11862,
    "h": 330.9
  },
  "luminance": 0.02267
}

Semantic roles & 50–950 ramp

primary
#4C0C48
secondary
#2C8832
accent
#EF4438
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #4C0C48

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

Preview Lab → · Contrast checker → · Palette generator →

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