#4C0F52#4C0F52

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

Color values

HEX#4C0F52
RGBrgb(76, 15, 82)
HSLhsl(295, 69%, 19%)
HSVhsv(295, 82%, 32%)
CMYKcmyk(7.3%, 81.7%, 0%, 67.8%)
CIE-LABlab(17.86, 37.23, -26.13)
CIE-LCHlch(17.86, 45.48, 324.94°)
OKLaboklab(30.83% 0.1004 -0.0729)
OKLCHoklch(30.83% 0.124 324)
XYZxyz(4.6742, 2.4876, 8.2150)
Luminance0.0249 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C0F52 #15520F
analogous
#2B0F52 #4C0F52 #520F37
triadic
#4C0F52 #524C0F #0F524C
tetradic
#4C0F52 #522B0F #15520F #0F3752
square
#4C0F52 #522B0F #15520F #0F3752
split-complementary
#4C0F52 #37520F #0F522B
monochromatic
#18051A #1C061E #4C0F52 #7C1886 #AC22B9

Accessibility & contrast

On white

14.02
#4C0F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C0F52
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C0F52#FFFFFF#000000##FFFFFF
##4C0F521.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002754
Deuteranopia (green-blind)
#1C2E50
Tritanopia (blue-blind)
#4E1B30
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4c0f52;
/* rgb */ color: rgb(76, 15, 82);
/* oklch */ color: oklch(30.8% 0.124 324.0);
Tailwind
colors: {
  custom: {
    50: '#815583',
    500: '#4c0f52',
    950: '#000000',
  },
}
SCSS
$custom: #4c0f52;
$custom-light: #815583;
$custom-dark: #000000;
JSON
{
  "hex": "#4c0f52",
  "rgb": {
    "r": 76,
    "g": 15,
    "b": 82
  },
  "hsl": {
    "h": 294.627,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.30825,
    "c": 0.12404,
    "h": 324
  },
  "luminance": 0.02487
}

Semantic roles & 50–950 ramp

primary
#4C0F52
secondary
#398C31
accent
#EC3C4C
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4C0F52

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

Preview Lab → · Contrast checker → · Palette generator →

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