#4C1666#4C1666

#4C1666 is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.0% C 0.135 H 312.1°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#4C1666
RGBrgb(76, 22, 102)
HSLhsl(281, 65%, 24%)
HSVhsv(281, 78%, 40%)
CMYKcmyk(25.5%, 78.4%, 0%, 60%)
CIE-LABlab(20.32, 38.75, -35.51)
CIE-LCHlch(20.32, 52.56, 317.50°)
OKLaboklab(33.04% 0.0906 -0.1004)
OKLCHoklch(33.04% 0.135 312.1)
XYZxyz(5.6652, 3.0698, 12.8619)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1666 #306616
analogous
#241666 #4C1666 #661658
triadic
#4C1666 #664C16 #16664C
tetradic
#4C1666 #662416 #306616 #165866
square
#4C1666 #662416 #306616 #165866
split-complementary
#4C1666 #586616 #166624
monochromatic
#130519 #260B34 #4C1666 #722198 #972CCB

Accessibility & contrast

On white

13.01
#4C1666 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#4C1666 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1666
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1666#FFFFFF#000000##FFFFFF
##4C16661.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E68
Deuteranopia (green-blind)
#0A3264
Tritanopia (blue-blind)
#49283D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4c1666;
/* rgb */ color: rgb(76, 22, 102);
/* oklch */ color: oklch(33.0% 0.135 312.1);
Tailwind
colors: {
  custom: {
    50: '#815992',
    500: '#4c1666',
    950: '#000000',
  },
}
SCSS
$custom: #4c1666;
$custom-light: #815992;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1666",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 102
  },
  "hsl": {
    "h": 280.5,
    "s": 64.516,
    "l": 24.314
  },
  "oklch": {
    "l": 0.3304,
    "c": 0.13525,
    "h": 312.1
  },
  "luminance": 0.0307
}

Semantic roles & 50–950 ramp

primary
#4C1666
secondary
#5B9D3B
accent
#E84077
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4C1666

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

Preview Lab → · Contrast checker → · Palette generator →

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