#4C0C4F#4C0C4F

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

Color values

HEX#4C0C4F
RGBrgb(76, 12, 79)
HSLhsl(297, 74%, 18%)
HSVhsv(297, 85%, 31%)
CMYKcmyk(3.8%, 84.8%, 0%, 69%)
CIE-LABlab(17.29, 37.69, -24.99)
CIE-LCHlch(17.29, 45.22, 326.45°)
OKLaboklab(30.35% 0.1035 -0.0696)
OKLCHoklch(30.35% 0.125 326.1)
XYZxyz(4.5232, 2.3643, 7.6137)
Luminance0.0236 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C0C4F #0F4F0C
analogous
#2A0C4F #4C0C4F #4F0C31
triadic
#4C0C4F #4F4C0C #0C4F4C
tetradic
#4C0C4F #4F2A0C #0F4F0C #0C314F
square
#4C0C4F #4F2A0C #0F4F0C #0C314F
split-complementary
#4C0C4F #314F0C #0C4F2A
monochromatic
#1A041B #1A041B #4C0C4F #7F1484 #B21CB9

Accessibility & contrast

On white

14.26
#4C0C4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#4C0C4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C0C4F
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C0C4F#FFFFFF#000000##FFFFFF
##4C0C4F1.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002551
Deuteranopia (green-blind)
#1C2D4D
Tritanopia (blue-blind)
#4E182D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4c0c4f;
/* rgb */ color: rgb(76, 12, 79);
/* oklch */ color: oklch(30.4% 0.125 326.1);
Tailwind
colors: {
  custom: {
    50: '#815481',
    500: '#4c0c4f',
    950: '#000000',
  },
}
SCSS
$custom: #4c0c4f;
$custom-light: #815481;
$custom-dark: #000000;
JSON
{
  "hex": "#4c0c4f",
  "rgb": {
    "r": 76,
    "g": 12,
    "b": 79
  },
  "hsl": {
    "h": 297.313,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.30354,
    "c": 0.12467,
    "h": 326.1
  },
  "luminance": 0.02364
}

Semantic roles & 50–950 ramp

primary
#4C0C4F
secondary
#318B2C
accent
#F03840
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4C0C4F

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

Preview Lab → · Contrast checker → · Palette generator →

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