#4C1266#4C1266

#4C1266 is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.6% C 0.140 H 312.5°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#4C1266
RGBrgb(76, 18, 102)
HSLhsl(281, 70%, 24%)
HSVhsv(281, 82%, 40%)
CMYKcmyk(25.5%, 82.4%, 0%, 60%)
CIE-LABlab(19.76, 40.38, -36.42)
CIE-LCHlch(19.76, 54.38, 317.95°)
OKLaboklab(32.64% 0.0945 -0.1031)
OKLCHoklch(32.64% 0.14 312.5)
XYZxyz(5.5946, 2.9286, 12.8384)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1266 #2C6612
analogous
#221266 #4C1266 #661256
triadic
#4C1266 #664C12 #12664C
tetradic
#4C1266 #662212 #2C6612 #125666
square
#4C1266 #662212 #2C6612 #125666
split-complementary
#4C1266 #566612 #126622
monochromatic
#13051A #250932 #4C1266 #731B9A #9A24CE

Accessibility & contrast

On white

13.24
#4C1266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1266
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1266#FFFFFF#000000##FFFFFF
##4C12661.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D68
Deuteranopia (green-blind)
#053164
Tritanopia (blue-blind)
#49263C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4c1266;
/* rgb */ color: rgb(76, 18, 102);
/* oklch */ color: oklch(32.6% 0.140 312.5);
Tailwind
colors: {
  custom: {
    50: '#825892',
    500: '#4c1266',
    950: '#000000',
  },
}
SCSS
$custom: #4c1266;
$custom-light: #825892;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1266",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 102
  },
  "hsl": {
    "h": 281.429,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.32641,
    "c": 0.13988,
    "h": 312.5
  },
  "luminance": 0.02928
}

Semantic roles & 50–950 ramp

primary
#4C1266
secondary
#569E36
accent
#ED3B72
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4C1266

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

Preview Lab → · Contrast checker → · Palette generator →

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