#4C0F42#4C0F42

#4C0F42 is a dark, moderate purple. Relative luminance 0.023; OKLCH L 29.8% C 0.110 H 335.5°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#4C0F42
RGBrgb(76, 15, 66)
HSLhsl(310, 67%, 18%)
HSVhsv(310, 80%, 30%)
CMYKcmyk(0%, 80.3%, 13.2%, 70.2%)
CIE-LABlab(16.85, 34.24, -16.72)
CIE-LCHlch(16.85, 38.10, 333.97°)
OKLaboklab(29.78% 0.1001 -0.0456)
OKLCHoklch(29.78% 0.11 335.5)
XYZxyz(4.1347, 2.2719, 5.3740)
Luminance0.0227 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C0F42 #0F4C19
analogous
#370F4C #4C0F42 #4C0F23
triadic
#4C0F42 #424C0F #0F424C
tetradic
#4C0F42 #4C370F #0F4C19 #0F234C
square
#4C0F42 #4C370F #0F4C19 #0F234C
split-complementary
#4C0F42 #234C0F #0F4C37
monochromatic
#1A0516 #1A0516 #4C0F42 #7F196E #B2239B

Accessibility & contrast

On white

14.44
#4C0F42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#4C0F42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C0F42
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C0F42#FFFFFF#000000##FFFFFF
##4C0F421.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2443
Deuteranopia (green-blind)
#252D41
Tritanopia (blue-blind)
#501427
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4c0f42;
/* rgb */ color: rgb(76, 15, 66);
/* oklch */ color: oklch(29.8% 0.110 335.5);
Tailwind
colors: {
  custom: {
    50: '#815576',
    500: '#4c0f42',
    950: '#000000',
  },
}
SCSS
$custom: #4c0f42;
$custom-light: #815576;
$custom-dark: #000000;
JSON
{
  "hex": "#4c0f42",
  "rgb": {
    "r": 76,
    "g": 15,
    "b": 66
  },
  "hsl": {
    "h": 309.836,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.29777,
    "c": 0.11002,
    "h": 335.5
  },
  "luminance": 0.02271
}

Semantic roles & 50–950 ramp

primary
#4C0F42
secondary
#31863F
accent
#EA5A3E
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0308
muted
#7C787B

Preview Lab

Preview with #4C0F42

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

Preview Lab → · Contrast checker → · Palette generator →

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