#4C1168#4C1168

#4C1168 is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.7% C 0.143 H 311.7°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#4C1168
RGBrgb(76, 17, 104)
HSLhsl(281, 72%, 24%)
HSVhsv(281, 84%, 41%)
CMYKcmyk(26.9%, 83.7%, 0%, 59.2%)
CIE-LABlab(19.79, 41.21, -37.68)
CIE-LCHlch(19.79, 55.84, 317.56°)
OKLaboklab(32.72% 0.095 -0.1068)
OKLCHoklch(32.72% 0.143 311.7)
XYZxyz(5.6792, 2.9370, 13.3618)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1168 #2D6811
analogous
#201168 #4C1168 #681158
triadic
#4C1168 #684C11 #11684C
tetradic
#4C1168 #682011 #2D6811 #115868
square
#4C1168 #682011 #2D6811 #115868
split-complementary
#4C1168 #586811 #116820
monochromatic
#13041A #260833 #4C1168 #721A9D #9922D1

Accessibility & contrast

On white

13.23
#4C1168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#4C1168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1168
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1168#FFFFFF#000000##FFFFFF
##4C11681.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6A
Deuteranopia (green-blind)
#003166
Tritanopia (blue-blind)
#48273D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4c1168;
/* rgb */ color: rgb(76, 17, 104);
/* oklch */ color: oklch(32.7% 0.143 311.7);
Tailwind
colors: {
  custom: {
    50: '#825794',
    500: '#4c1168',
    950: '#000000',
  },
}
SCSS
$custom: #4c1168;
$custom-light: #825794;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1168",
  "rgb": {
    "r": 76,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 280.69,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.32716,
    "c": 0.14292,
    "h": 311.7
  },
  "luminance": 0.02937
}

Semantic roles & 50–950 ramp

primary
#4C1168
secondary
#57A035
accent
#EF3974
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B030D
muted
#7C787E

Preview Lab

Preview with #4C1168

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

Preview Lab → · Contrast checker → · Palette generator →

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