#4C0F51#4C0F51

#4C0F51 is a dark, vivid purple. Relative luminance 0.025; OKLCH L 30.8% C 0.123 H 324.7°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#4C0F51
RGBrgb(76, 15, 81)
HSLhsl(295, 69%, 19%)
HSVhsv(295, 81%, 32%)
CMYKcmyk(6.2%, 81.5%, 0%, 68.2%)
CIE-LABlab(17.79, 37.03, -25.56)
CIE-LCHlch(17.79, 44.99, 325.39°)
OKLaboklab(30.75% 0.1004 -0.0712)
OKLCHoklch(30.75% 0.123 324.7)
XYZxyz(4.6364, 2.4725, 8.0160)
Luminance0.0247 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C0F51 #14510F
analogous
#2B0F51 #4C0F51 #510F35
triadic
#4C0F51 #514C0F #0F514C
tetradic
#4C0F51 #512B0F #14510F #0F3551
square
#4C0F51 #512B0F #14510F #0F3551
split-complementary
#4C0F51 #35510F #0F512B
monochromatic
#18051A #1C051D #4C0F51 #7C1985 #AD22B8

Accessibility & contrast

On white

14.05
#4C0F51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C0F51
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C0F51#FFFFFF#000000##FFFFFF
##4C0F511.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002753
Deuteranopia (green-blind)
#1C2E4F
Tritanopia (blue-blind)
#4E1B2F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4c0f51;
/* rgb */ color: rgb(76, 15, 81);
/* oklch */ color: oklch(30.8% 0.123 324.7);
Tailwind
colors: {
  custom: {
    50: '#815582',
    500: '#4c0f51',
    950: '#000000',
  },
}
SCSS
$custom: #4c0f51;
$custom-light: #815582;
$custom-dark: #000000;
JSON
{
  "hex": "#4c0f51",
  "rgb": {
    "r": 76,
    "g": 15,
    "b": 81
  },
  "hsl": {
    "h": 295.455,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.30754,
    "c": 0.12313,
    "h": 324.7
  },
  "luminance": 0.02472
}

Semantic roles & 50–950 ramp

primary
#4C0F51
secondary
#388B31
accent
#EC3C49
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4C0F51

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

Preview Lab → · Contrast checker → · Palette generator →

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