#4C1260#4C1260

#4C1260 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.2% C 0.134 H 315.6°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#4C1260
RGBrgb(76, 18, 96)
HSLhsl(285, 68%, 22%)
HSVhsv(285, 81%, 38%)
CMYKcmyk(20.8%, 81.3%, 0%, 62.4%)
CIE-LABlab(19.28, 39.04, -33.23)
CIE-LCHlch(19.28, 51.27, 319.59°)
OKLaboklab(32.16% 0.0957 -0.0937)
OKLCHoklch(32.16% 0.134 315.6)
XYZxyz(5.3078, 2.8138, 11.3276)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1260 #266012
analogous
#251260 #4C1260 #60124D
triadic
#4C1260 #604C12 #12604C
tetradic
#4C1260 #602512 #266012 #124D60
square
#4C1260 #602512 #266012 #124D60
split-complementary
#4C1260 #4D6012 #126025
monochromatic
#14051A #23082C #4C1260 #751C94 #9E25C7

Accessibility & contrast

On white

13.44
#4C1260 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#4C1260 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1260
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1260#FFFFFF#000000##FFFFFF
##4C12601.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B62
Deuteranopia (green-blind)
#10305E
Tritanopia (blue-blind)
#4A2438
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4c1260;
/* rgb */ color: rgb(76, 18, 96);
/* oklch */ color: oklch(32.2% 0.134 315.6);
Tailwind
colors: {
  custom: {
    50: '#81578e',
    500: '#4c1260',
    950: '#000000',
  },
}
SCSS
$custom: #4c1260;
$custom-light: #81578e;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1260",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 96
  },
  "hsl": {
    "h": 284.615,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32158,
    "c": 0.13394,
    "h": 315.6
  },
  "luminance": 0.02814
}

Semantic roles & 50–950 ramp

primary
#4C1260
secondary
#4F9836
accent
#EB3D69
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4C1260

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

Preview Lab → · Contrast checker → · Palette generator →

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