#4C0C51#4C0C51

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

Color values

HEX#4C0C51
RGBrgb(76, 12, 81)
HSLhsl(296, 74%, 18%)
HSVhsv(296, 85%, 32%)
CMYKcmyk(6.2%, 85.2%, 0%, 68.2%)
CIE-LABlab(17.43, 38.07, -26.14)
CIE-LCHlch(17.43, 46.18, 325.53°)
OKLaboklab(30.5% 0.1033 -0.0729)
OKLCHoklch(30.5% 0.126 324.8)
XYZxyz(4.5971, 2.3938, 8.0029)
Luminance0.0239 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C0C51 #11510C
analogous
#290C51 #4C0C51 #510C33
triadic
#4C0C51 #514C0C #0C514C
tetradic
#4C0C51 #51290C #11510C #0C3351
square
#4C0C51 #51290C #11510C #0C3351
split-complementary
#4C0C51 #33510C #0C5129
monochromatic
#19041B #1A041C #4C0C51 #7E1486 #B01CBC

Accessibility & contrast

On white

14.20
#4C0C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C0C51
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C0C51#FFFFFF#000000##FFFFFF
##4C0C511.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002653
Deuteranopia (green-blind)
#1B2D4F
Tritanopia (blue-blind)
#4E192F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #4c0c51;
/* rgb */ color: rgb(76, 12, 81);
/* oklch */ color: oklch(30.5% 0.126 324.8);
Tailwind
colors: {
  custom: {
    50: '#815482',
    500: '#4c0c51',
    950: '#000000',
  },
}
SCSS
$custom: #4c0c51;
$custom-light: #815482;
$custom-dark: #000000;
JSON
{
  "hex": "#4c0c51",
  "rgb": {
    "r": 76,
    "g": 12,
    "b": 81
  },
  "hsl": {
    "h": 295.652,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.30497,
    "c": 0.12644,
    "h": 324.8
  },
  "luminance": 0.02394
}

Semantic roles & 50–950 ramp

primary
#4C0C51
secondary
#338C2C
accent
#F13744
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4C0C51

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

Preview Lab → · Contrast checker → · Palette generator →

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