#4C0D4D#4C0D4D

#4C0D4D is a dark, vivid purple. Relative luminance 0.024; OKLCH L 30.3% C 0.122 H 327.4°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#4C0D4D
RGBrgb(76, 13, 77)
HSLhsl(299, 71%, 18%)
HSVhsv(299, 83%, 30%)
CMYKcmyk(1.3%, 83.1%, 0%, 69.8%)
CIE-LABlab(17.28, 36.97, -23.65)
CIE-LCHlch(17.28, 43.89, 327.39°)
OKLaboklab(30.3% 0.1026 -0.0657)
OKLCHoklch(30.3% 0.122 327.4)
XYZxyz(4.4639, 2.3605, 7.2402)
Luminance0.0236 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C0D4D #0E4D0D
analogous
#2C0D4D #4C0D4D #4D0D2E
triadic
#4C0D4D #4D4C0D #0D4D4C
tetradic
#4C0D4D #4D2C0D #0E4D0D #0D2E4D
square
#4C0D4D #4D2C0D #0E4D0D #0D2E4D
split-complementary
#4C0D4D #2E4D0D #0D4D2C
monochromatic
#1A041A #1A041A #4C0D4D #801681 #B31FB6

Accessibility & contrast

On white

14.27
#4C0D4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C0D4D
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C0D4D#FFFFFF#000000##FFFFFF
##4C0D4D1.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00254F
Deuteranopia (green-blind)
#1E2D4B
Tritanopia (blue-blind)
#4E182C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4c0d4d;
/* rgb */ color: rgb(76, 13, 77);
/* oklch */ color: oklch(30.3% 0.122 327.4);
Tailwind
colors: {
  custom: {
    50: '#81547f',
    500: '#4c0d4d',
    950: '#000000',
  },
}
SCSS
$custom: #4c0d4d;
$custom-light: #81547f;
$custom-dark: #000000;
JSON
{
  "hex": "#4c0d4d",
  "rgb": {
    "r": 76,
    "g": 13,
    "b": 77
  },
  "hsl": {
    "h": 299.063,
    "s": 71.111,
    "l": 17.647
  },
  "oklch": {
    "l": 0.30298,
    "c": 0.12183,
    "h": 327.4
  },
  "luminance": 0.0236
}

Semantic roles & 50–950 ramp

primary
#4C0D4D
secondary
#2F882E
accent
#EE3A3D
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4C0D4D

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

Preview Lab → · Contrast checker → · Palette generator →

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