#4C0D4F#4C0D4F

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

Color values

HEX#4C0D4F
RGBrgb(76, 13, 79)
HSLhsl(297, 72%, 18%)
HSVhsv(297, 84%, 31%)
CMYKcmyk(3.8%, 83.5%, 0%, 69%)
CIE-LABlab(17.41, 37.35, -24.81)
CIE-LCHlch(17.41, 44.84, 326.41°)
OKLaboklab(30.44% 0.1025 -0.069)
OKLCHoklch(30.44% 0.124 326.1)
XYZxyz(4.5356, 2.3892, 7.6179)
Luminance0.0239 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C0D4F #104F0D
analogous
#2B0D4F #4C0D4F #4F0D31
triadic
#4C0D4F #4F4C0D #0D4F4C
tetradic
#4C0D4F #4F2B0D #104F0D #0D314F
square
#4C0D4F #4F2B0D #104F0D #0D314F
split-complementary
#4C0D4F #314F0D #0D4F2B
monochromatic
#19041A #19041A #4C0D4F #7F1684 #B11EB8

Accessibility & contrast

On white

14.21
#4C0D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C0D4F
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C0D4F#FFFFFF#000000##FFFFFF
##4C0D4F1.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c0d4f;
/* rgb */ color: rgb(76, 13, 79);
/* oklch */ color: oklch(30.4% 0.124 326.1);
Tailwind
colors: {
  custom: {
    50: '#815481',
    500: '#4c0d4f',
    950: '#000000',
  },
}
SCSS
$custom: #4c0d4f;
$custom-light: #815481;
$custom-dark: #000000;
JSON
{
  "hex": "#4c0d4f",
  "rgb": {
    "r": 76,
    "g": 13,
    "b": 79
  },
  "hsl": {
    "h": 297.273,
    "s": 71.739,
    "l": 18.039
  },
  "oklch": {
    "l": 0.30437,
    "c": 0.1236,
    "h": 326.1
  },
  "luminance": 0.02389
}

Semantic roles & 50–950 ramp

primary
#4C0D4F
secondary
#328A2E
accent
#EE3942
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4C0D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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