#4C1147#4C1147

#4C1147 is a dark, moderate purple. Relative luminance 0.024; OKLCH L 30.3% C 0.112 H 331.6°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#4C1147
RGBrgb(76, 17, 71)
HSLhsl(305, 63%, 18%)
HSVhsv(305, 78%, 30%)
CMYKcmyk(0%, 77.6%, 6.6%, 70.2%)
CIE-LABlab(17.43, 34.34, -19.29)
CIE-LCHlch(17.43, 39.38, 330.67°)
OKLaboklab(30.28% 0.0982 -0.053)
OKLCHoklch(30.28% 0.112 331.6)
XYZxyz(4.3183, 2.3927, 6.1944)
Luminance0.0239 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1147 #114C16
analogous
#33114C #4C1147 #4C1129
triadic
#4C1147 #474C11 #11474C
tetradic
#4C1147 #4C3311 #114C16 #11294C
square
#4C1147 #4C3311 #114C16 #11294C
split-complementary
#4C1147 #294C11 #114C33
monochromatic
#190617 #1A0618 #4C1147 #7E1C76 #B027A4

Accessibility & contrast

On white

14.20
#4C1147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#4C1147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1147
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1147#FFFFFF#000000##FFFFFF
##4C11471.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2549
Deuteranopia (green-blind)
#232E46
Tritanopia (blue-blind)
#4F182A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #4c1147;
/* rgb */ color: rgb(76, 17, 71);
/* oklch */ color: oklch(30.3% 0.112 331.6);
Tailwind
colors: {
  custom: {
    50: '#80567a',
    500: '#4c1147',
    950: '#000000',
  },
}
SCSS
$custom: #4c1147;
$custom-light: #80567a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1147",
  "rgb": {
    "r": 76,
    "g": 17,
    "b": 71
  },
  "hsl": {
    "h": 305.085,
    "s": 63.441,
    "l": 18.235
  },
  "oklch": {
    "l": 0.30284,
    "c": 0.11162,
    "h": 331.6
  },
  "luminance": 0.02392
}

Semantic roles & 50–950 ramp

primary
#4C1147
secondary
#33853A
accent
#E64F41
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0A0309
muted
#7C787B

Preview Lab

Preview with #4C1147

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

Preview Lab → · Contrast checker → · Palette generator →

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