#4C0F4D#4C0F4D

#4C0F4D is a dark, moderate purple. Relative luminance 0.024; OKLCH L 30.5% C 0.119 H 327.3°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#4C0F4D
RGBrgb(76, 15, 77)
HSLhsl(299, 67%, 18%)
HSVhsv(299, 81%, 30%)
CMYKcmyk(1.3%, 80.5%, 0%, 69.8%)
CIE-LABlab(17.53, 36.25, -23.26)
CIE-LCHlch(17.53, 43.07, 327.32°)
OKLaboklab(30.48% 0.1006 -0.0645)
OKLCHoklch(30.48% 0.12 327.3)
XYZxyz(4.4908, 2.4143, 7.2492)
Luminance0.0241 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C0F4D #104D0F
analogous
#2D0F4D #4C0F4D #4D0F2F
triadic
#4C0F4D #4D4C0F #0F4D4C
tetradic
#4C0F4D #4D2D0F #104D0F #0F2F4D
square
#4C0F4D #4D2D0F #104D0F #0F2F4D
split-complementary
#4C0F4D #2F4D0F #0F4D2D
monochromatic
#19051A #19051A #4C0F4D #7F1980 #B123B3

Accessibility & contrast

On white

14.16
#4C0F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#4C0F4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C0F4D
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C0F4D#FFFFFF#000000##FFFFFF
##4C0F4D1.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03264F
Deuteranopia (green-blind)
#1F2E4B
Tritanopia (blue-blind)
#4E192D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #4c0f4d;
/* rgb */ color: rgb(76, 15, 77);
/* oklch */ color: oklch(30.5% 0.119 327.3);
Tailwind
colors: {
  custom: {
    50: '#81557f',
    500: '#4c0f4d',
    950: '#000000',
  },
}
SCSS
$custom: #4c0f4d;
$custom-light: #81557f;
$custom-dark: #000000;
JSON
{
  "hex": "#4c0f4d",
  "rgb": {
    "r": 76,
    "g": 15,
    "b": 77
  },
  "hsl": {
    "h": 299.032,
    "s": 67.391,
    "l": 18.039
  },
  "oklch": {
    "l": 0.30477,
    "c": 0.1195,
    "h": 327.3
  },
  "luminance": 0.02414
}

Semantic roles & 50–950 ramp

primary
#4C0F4D
secondary
#328731
accent
#EA3E40
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4C0F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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