#4C1267#4C1267

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

Color values

HEX#4C1267
RGBrgb(76, 18, 103)
HSLhsl(281, 70%, 24%)
HSVhsv(281, 83%, 40%)
CMYKcmyk(26.2%, 82.5%, 0%, 59.6%)
CIE-LABlab(19.84, 40.61, -36.95)
CIE-LCHlch(19.84, 54.90, 317.70°)
OKLaboklab(32.72% 0.0943 -0.1046)
OKLCHoklch(32.72% 0.141 312)
XYZxyz(5.6445, 2.9485, 13.1011)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1267 #2D6712
analogous
#211267 #4C1267 #671257
triadic
#4C1267 #674C12 #12674C
tetradic
#4C1267 #672112 #2D6712 #125767
square
#4C1267 #672112 #2D6712 #125767
split-complementary
#4C1267 #576712 #126721
monochromatic
#13051A #260933 #4C1267 #721B9B #9924CF

Accessibility & contrast

On white

13.21
#4C1267 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1267
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1267#FFFFFF#000000##FFFFFF
##4C12671.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D69
Deuteranopia (green-blind)
#033165
Tritanopia (blue-blind)
#49273C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4c1267;
/* rgb */ color: rgb(76, 18, 103);
/* oklch */ color: oklch(32.7% 0.141 312.0);
Tailwind
colors: {
  custom: {
    50: '#825893',
    500: '#4c1267',
    950: '#000000',
  },
}
SCSS
$custom: #4c1267;
$custom-light: #825893;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1267",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 103
  },
  "hsl": {
    "h": 280.941,
    "s": 70.248,
    "l": 23.725
  },
  "oklch": {
    "l": 0.32723,
    "c": 0.14088,
    "h": 312
  },
  "luminance": 0.02948
}

Semantic roles & 50–950 ramp

primary
#4C1267
secondary
#579F36
accent
#ED3B73
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4C1267

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

Preview Lab → · Contrast checker → · Palette generator →

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