#4C0D52#4C0D52

#4C0D52 is a dark, vivid purple. Relative luminance 0.024; OKLCH L 30.6% C 0.126 H 324.1°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#4C0D52
RGBrgb(76, 13, 82)
HSLhsl(295, 73%, 19%)
HSVhsv(295, 84%, 32%)
CMYKcmyk(7.3%, 84.1%, 0%, 67.8%)
CIE-LABlab(17.62, 37.94, -26.52)
CIE-LCHlch(17.62, 46.29, 325.04°)
OKLaboklab(30.65% 0.1023 -0.074)
OKLCHoklch(30.65% 0.126 324.1)
XYZxyz(4.6473, 2.4338, 8.2060)
Luminance0.0243 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C0D52 #13520D
analogous
#290D52 #4C0D52 #520D35
triadic
#4C0D52 #524C0D #0D524C
tetradic
#4C0D52 #52290D #13520D #0D3552
square
#4C0D52 #52290D #13520D #0D3552
split-complementary
#4C0D52 #35520D #0D5229
monochromatic
#18041A #1B051D #4C0D52 #7D1587 #AE1EBC

Accessibility & contrast

On white

14.12
#4C0D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#4C0D52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C0D52
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C0D52#FFFFFF#000000##FFFFFF
##4C0D521.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002654
Deuteranopia (green-blind)
#1B2E50
Tritanopia (blue-blind)
#4E1A2F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #4c0d52;
/* rgb */ color: rgb(76, 13, 82);
/* oklch */ color: oklch(30.6% 0.126 324.1);
Tailwind
colors: {
  custom: {
    50: '#815583',
    500: '#4c0d52',
    950: '#000000',
  },
}
SCSS
$custom: #4c0d52;
$custom-light: #815583;
$custom-dark: #000000;
JSON
{
  "hex": "#4c0d52",
  "rgb": {
    "r": 76,
    "g": 13,
    "b": 82
  },
  "hsl": {
    "h": 294.783,
    "s": 72.632,
    "l": 18.627
  },
  "oklch": {
    "l": 0.3065,
    "c": 0.12628,
    "h": 324.1
  },
  "luminance": 0.02434
}

Semantic roles & 50–950 ramp

primary
#4C0D52
secondary
#368D2E
accent
#EF3848
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4C0D52

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

Preview Lab → · Contrast checker → · Palette generator →

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