#4C0F48#4C0F48

#4C0F48 is a dark, moderate purple. Relative luminance 0.023; OKLCH L 30.1% C 0.115 H 330.9°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#4C0F48
RGBrgb(76, 15, 72)
HSLhsl(304, 67%, 18%)
HSVhsv(304, 80%, 30%)
CMYKcmyk(0%, 80.3%, 5.3%, 70.2%)
CIE-LABlab(17.21, 35.31, -20.32)
CIE-LCHlch(17.21, 40.74, 330.08°)
OKLaboklab(30.15% 0.1005 -0.056)
OKLCHoklch(30.15% 0.115 330.9)
XYZxyz(4.3210, 2.3464, 6.3549)
Luminance0.0235 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C0F48 #0F4C13
analogous
#310F4C #4C0F48 #4C0F2A
triadic
#4C0F48 #484C0F #0F484C
tetradic
#4C0F48 #4C310F #0F4C13 #0F2A4C
square
#4C0F48 #4C310F #0F4C13 #0F2A4C
split-complementary
#4C0F48 #2A4C0F #0F4C31
monochromatic
#1A0518 #1A0518 #4C0F48 #7F1978 #B223A9

Accessibility & contrast

On white

14.29
#4C0F48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#4C0F48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C0F48
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C0F48#FFFFFF#000000##FFFFFF
##4C0F481.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09254A
Deuteranopia (green-blind)
#222D47
Tritanopia (blue-blind)
#4F172A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4c0f48;
/* rgb */ color: rgb(76, 15, 72);
/* oklch */ color: oklch(30.1% 0.115 330.9);
Tailwind
colors: {
  custom: {
    50: '#81557b',
    500: '#4c0f48',
    950: '#000000',
  },
}
SCSS
$custom: #4c0f48;
$custom-light: #81557b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c0f48",
  "rgb": {
    "r": 76,
    "g": 15,
    "b": 72
  },
  "hsl": {
    "h": 303.934,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.30147,
    "c": 0.11509,
    "h": 330.9
  },
  "luminance": 0.02346
}

Semantic roles & 50–950 ramp

primary
#4C0F48
secondary
#318636
accent
#EA493E
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #4C0F48

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

Preview Lab → · Contrast checker → · Palette generator →

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