#4C0C4E#4C0C4E

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

Color values

HEX#4C0C4E
RGBrgb(76, 12, 78)
HSLhsl(298, 73%, 18%)
HSVhsv(298, 85%, 31%)
CMYKcmyk(2.6%, 84.6%, 0%, 69.4%)
CIE-LABlab(17.23, 37.50, -24.42)
CIE-LCHlch(17.23, 44.75, 326.92°)
OKLaboklab(30.28% 0.1035 -0.0679)
OKLCHoklch(30.28% 0.124 326.7)
XYZxyz(4.4870, 2.3498, 7.4235)
Luminance0.0235 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C0C4E #0E4E0C
analogous
#2B0C4E #4C0C4E #4E0C2F
triadic
#4C0C4E #4E4C0C #0C4E4C
tetradic
#4C0C4E #4E2B0C #0E4E0C #0C2F4E
square
#4C0C4E #4E2B0C #0E4E0C #0C2F4E
split-complementary
#4C0C4E #2F4E0C #0C4E2B
monochromatic
#1A041B #1A041B #4C0C4E #801483 #B31CB8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C0C4E#FFFFFF#000000##FFFFFF
##4C0C4E1.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)
#002550
Deuteranopia (green-blind)
#1D2D4C
Tritanopia (blue-blind)
#4E182D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4c0c4e;
/* rgb */ color: rgb(76, 12, 78);
/* oklch */ color: oklch(30.3% 0.124 326.7);
Tailwind
colors: {
  custom: {
    50: '#815480',
    500: '#4c0c4e',
    950: '#000000',
  },
}
SCSS
$custom: #4c0c4e;
$custom-light: #815480;
$custom-dark: #000000;
JSON
{
  "hex": "#4c0c4e",
  "rgb": {
    "r": 76,
    "g": 12,
    "b": 78
  },
  "hsl": {
    "h": 298.182,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.30284,
    "c": 0.12379,
    "h": 326.7
  },
  "luminance": 0.0235
}

Semantic roles & 50–950 ramp

primary
#4C0C4E
secondary
#2F8A2C
accent
#F0383D
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4C0C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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