#4C0D56#4C0D56

#4C0D56 is a dark, vivid purple. Relative luminance 0.025; OKLCH L 30.9% C 0.130 H 321.7°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#4C0D56
RGBrgb(76, 13, 86)
HSLhsl(292, 74%, 19%)
HSVhsv(292, 85%, 34%)
CMYKcmyk(11.6%, 84.9%, 0%, 66.3%)
CIE-LABlab(17.90, 38.73, -28.77)
CIE-LCHlch(17.90, 48.25, 323.40°)
OKLaboklab(30.94% 0.1019 -0.0806)
OKLCHoklch(30.94% 0.13 321.7)
XYZxyz(4.8039, 2.4965, 9.0311)
Luminance0.0250 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C0D56 #17560D
analogous
#280D56 #4C0D56 #560D3C
triadic
#4C0D56 #564C0D #0D564C
tetradic
#4C0D56 #56280D #17560D #0D3C56
square
#4C0D56 #56280D #17560D #0D3C56
split-complementary
#4C0D56 #3C560D #0D5628
monochromatic
#17041B #1D0521 #4C0D56 #7B158B #AA1DC0

Accessibility & contrast

On white

14.01
#4C0D56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#4C0D56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C0D56
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C0D56#FFFFFF#000000##FFFFFF
##4C0D561.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002758
Deuteranopia (green-blind)
#172E54
Tritanopia (blue-blind)
#4D1C32
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4c0d56;
/* rgb */ color: rgb(76, 13, 86);
/* oklch */ color: oklch(30.9% 0.130 321.7);
Tailwind
colors: {
  custom: {
    50: '#815586',
    500: '#4c0d56',
    950: '#000000',
  },
}
SCSS
$custom: #4c0d56;
$custom-light: #815586;
$custom-dark: #000000;
JSON
{
  "hex": "#4c0d56",
  "rgb": {
    "r": 76,
    "g": 13,
    "b": 86
  },
  "hsl": {
    "h": 291.781,
    "s": 73.737,
    "l": 19.412
  },
  "oklch": {
    "l": 0.30944,
    "c": 0.12991,
    "h": 321.7
  },
  "luminance": 0.02496
}

Semantic roles & 50–950 ramp

primary
#4C0D56
secondary
#3C912E
accent
#F03751
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4C0D56

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

Preview Lab → · Contrast checker → · Palette generator →

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