#4C0D45#4C0D45

#4C0D45 is a dark, moderate purple. Relative luminance 0.023; OKLCH L 29.8% C 0.115 H 333.1°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#4C0D45
RGBrgb(76, 13, 69)
HSLhsl(307, 71%, 17%)
HSVhsv(307, 83%, 30%)
CMYKcmyk(0%, 82.9%, 9.2%, 70.2%)
CIE-LABlab(16.77, 35.50, -18.94)
CIE-LCHlch(16.77, 40.24, 331.92°)
OKLaboklab(29.77% 0.1025 -0.052)
OKLCHoklch(29.77% 0.115 333.1)
XYZxyz(4.1986, 2.2544, 5.8431)
Luminance0.0225 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C0D45 #0D4C14
analogous
#340D4C #4C0D45 #4C0D25
triadic
#4C0D45 #454C0D #0D454C
tetradic
#4C0D45 #4C340D #0D4C14 #0D254C
square
#4C0D45 #4C340D #0D4C14 #0D254C
split-complementary
#4C0D45 #254C0D #0D4C34
monochromatic
#1A0418 #1A0418 #4C0D45 #801674 #B51FA4

Accessibility & contrast

On white

14.47
#4C0D45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C0D45
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C0D45#FFFFFF#000000##FFFFFF
##4C0D451.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2447
Deuteranopia (green-blind)
#232D44
Tritanopia (blue-blind)
#501428
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #4c0d45;
/* rgb */ color: rgb(76, 13, 69);
/* oklch */ color: oklch(29.8% 0.115 333.1);
Tailwind
colors: {
  custom: {
    50: '#815479',
    500: '#4c0d45',
    950: '#000000',
  },
}
SCSS
$custom: #4c0d45;
$custom-light: #815479;
$custom-dark: #000000;
JSON
{
  "hex": "#4c0d45",
  "rgb": {
    "r": 76,
    "g": 13,
    "b": 69
  },
  "hsl": {
    "h": 306.667,
    "s": 70.787,
    "l": 17.451
  },
  "oklch": {
    "l": 0.29773,
    "c": 0.11496,
    "h": 333.1
  },
  "luminance": 0.02254
}

Semantic roles & 50–950 ramp

primary
#4C0D45
secondary
#2E8738
accent
#EE4E3A
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #4C0D45

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

Preview Lab → · Contrast checker → · Palette generator →

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