#4C1256#4C1256

#4C1256 is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.4% C 0.124 H 321.3°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#4C1256
RGBrgb(76, 18, 86)
HSLhsl(291, 65%, 20%)
HSVhsv(291, 79%, 34%)
CMYKcmyk(11.6%, 79.1%, 0%, 66.3%)
CIE-LABlab(18.55, 36.88, -27.74)
CIE-LCHlch(18.55, 46.15, 323.06°)
OKLaboklab(31.4% 0.0969 -0.0776)
OKLCHoklch(31.4% 0.124 321.3)
XYZxyz(4.8763, 2.6413, 9.0553)
Luminance0.0264 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1256 #1C5612
analogous
#2A1256 #4C1256 #56123E
triadic
#4C1256 #564C12 #12564C
tetradic
#4C1256 #562A12 #1C5612 #123E56
square
#4C1256 #562A12 #1C5612 #123E56
split-complementary
#4C1256 #3E5612 #12562A
monochromatic
#160519 #1F0723 #4C1256 #791D89 #A527BB

Accessibility & contrast

On white

13.74
#4C1256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#4C1256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1256
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1256#FFFFFF#000000##FFFFFF
##4C12561.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002958
Deuteranopia (green-blind)
#1A2F54
Tritanopia (blue-blind)
#4D1F33
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4c1256;
/* rgb */ color: rgb(76, 18, 86);
/* oklch */ color: oklch(31.4% 0.124 321.3);
Tailwind
colors: {
  custom: {
    50: '#815786',
    500: '#4c1256',
    950: '#000000',
  },
}
SCSS
$custom: #4c1256;
$custom-light: #815786;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1256",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 291.176,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.31401,
    "c": 0.12418,
    "h": 321.3
  },
  "luminance": 0.02641
}

Semantic roles & 50–950 ramp

primary
#4C1256
secondary
#428F35
accent
#E83F58
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4C1256

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

Preview Lab → · Contrast checker → · Palette generator →

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