#4C1B4E#4C1B4E

#4C1B4E is a dark, moderate purple. Relative luminance 0.029; OKLCH L 31.9% C 0.103 H 326.1°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#4C1B4E
RGBrgb(76, 27, 78)
HSLhsl(298, 49%, 21%)
HSVhsv(298, 65%, 31%)
CMYKcmyk(2.6%, 65.4%, 0%, 69.4%)
CIE-LABlab(19.52, 31.04, -20.78)
CIE-LCHlch(19.52, 37.36, 326.20°)
OKLaboklab(31.94% 0.0855 -0.0574)
OKLCHoklch(31.94% 0.103 326.1)
XYZxyz(4.7475, 2.8707, 7.5103)
Luminance0.0287 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1B4E #1D4E1B
analogous
#321B4E #4C1B4E #4E1B36
triadic
#4C1B4E #4E4C1B #1B4E4C
tetradic
#4C1B4E #4E321B #1D4E1B #1B364E
square
#4C1B4E #4E321B #1D4E1B #1B364E
split-complementary
#4C1B4E #364E1B #1B4E32
monochromatic
#160817 #200B21 #4C1B4E #782B7B #A53AA9

Accessibility & contrast

On white

13.34
#4C1B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#4C1B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1B4E
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1B4E#FFFFFF#000000##FFFFFF
##4C1B4E1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142B50
Deuteranopia (green-blind)
#25314D
Tritanopia (blue-blind)
#4E2231
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4c1b4e;
/* rgb */ color: rgb(76, 27, 78);
/* oklch */ color: oklch(31.9% 0.103 326.1);
Tailwind
colors: {
  custom: {
    50: '#805b80',
    500: '#4c1b4e',
    950: '#000000',
  },
}
SCSS
$custom: #4c1b4e;
$custom-light: #805b80;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1b4e",
  "rgb": {
    "r": 76,
    "g": 27,
    "b": 78
  },
  "hsl": {
    "h": 297.647,
    "s": 48.571,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31935,
    "c": 0.10298,
    "h": 326.1
  },
  "luminance": 0.0287
}

Semantic roles & 50–950 ramp

primary
#4C1B4E
secondary
#448441
accent
#D85055
background
#F7F5F7
surface
#EEE9EE
border
#C9C5C9
text
#0A040A
muted
#7C797C

Preview Lab

Preview with #4C1B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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