#4C0F54#4C0F54

#4C0F54 is a dark, vivid purple. Relative luminance 0.025; OKLCH L 31.0% C 0.126 H 322.8°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#4C0F54
RGBrgb(76, 15, 84)
HSLhsl(293, 70%, 19%)
HSVhsv(293, 82%, 33%)
CMYKcmyk(9.5%, 82.1%, 0%, 67.1%)
CIE-LABlab(18.00, 37.63, -27.26)
CIE-LCHlch(18.00, 46.46, 324.08°)
OKLaboklab(30.97% 0.1002 -0.0762)
OKLCHoklch(30.97% 0.126 322.8)
XYZxyz(4.7514, 2.5185, 8.6216)
Luminance0.0252 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C0F54 #17540F
analogous
#290F54 #4C0F54 #540F3A
triadic
#4C0F54 #544C0F #0F544C
tetradic
#4C0F54 #54290F #17540F #0F3A54
square
#4C0F54 #54290F #17540F #0F3A54
split-complementary
#4C0F54 #3A540F #0F5429
monochromatic
#17051A #1D0620 #4C0F54 #7B1888 #AA22BC

Accessibility & contrast

On white

13.97
#4C0F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C0F54
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C0F54#FFFFFF#000000##FFFFFF
##4C0F541.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002856
Deuteranopia (green-blind)
#1A2E52
Tritanopia (blue-blind)
#4D1C31
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4c0f54;
/* rgb */ color: rgb(76, 15, 84);
/* oklch */ color: oklch(31.0% 0.126 322.8);
Tailwind
colors: {
  custom: {
    50: '#815584',
    500: '#4c0f54',
    950: '#000000',
  },
}
SCSS
$custom: #4c0f54;
$custom-light: #815584;
$custom-dark: #000000;
JSON
{
  "hex": "#4c0f54",
  "rgb": {
    "r": 76,
    "g": 15,
    "b": 84
  },
  "hsl": {
    "h": 293.043,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.30969,
    "c": 0.12589,
    "h": 322.8
  },
  "luminance": 0.02518
}

Semantic roles & 50–950 ramp

primary
#4C0F54
secondary
#3C8E31
accent
#ED3B50
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4C0F54

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

Preview Lab → · Contrast checker → · Palette generator →

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