#4C1148#4C1148

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

Color values

HEX#4C1148
RGBrgb(76, 17, 72)
HSLhsl(304, 63%, 18%)
HSVhsv(304, 78%, 30%)
CMYKcmyk(0%, 77.6%, 5.3%, 70.2%)
CIE-LABlab(17.49, 34.52, -19.88)
CIE-LCHlch(17.49, 39.84, 330.06°)
OKLaboklab(30.35% 0.0983 -0.0548)
OKLCHoklch(30.35% 0.113 330.9)
XYZxyz(4.3506, 2.4056, 6.3648)
Luminance0.0240 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1148 #114C15
analogous
#32114C #4C1148 #4C112A
triadic
#4C1148 #484C11 #11484C
tetradic
#4C1148 #4C3211 #114C15 #112A4C
square
#4C1148 #4C3211 #114C15 #112A4C
split-complementary
#4C1148 #2A4C11 #114C32
monochromatic
#190618 #1A0619 #4C1148 #7E1C77 #B027A7

Accessibility & contrast

On white

14.18
#4C1148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C1148
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1148#FFFFFF#000000##FFFFFF
##4C11481.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C264A
Deuteranopia (green-blind)
#232E47
Tritanopia (blue-blind)
#4F182B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #4c1148;
/* rgb */ color: rgb(76, 17, 72);
/* oklch */ color: oklch(30.3% 0.113 330.9);
Tailwind
colors: {
  custom: {
    50: '#80567b',
    500: '#4c1148',
    950: '#000000',
  },
}
SCSS
$custom: #4c1148;
$custom-light: #80567b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1148",
  "rgb": {
    "r": 76,
    "g": 17,
    "b": 72
  },
  "hsl": {
    "h": 304.068,
    "s": 63.441,
    "l": 18.235
  },
  "oklch": {
    "l": 0.30347,
    "c": 0.1125,
    "h": 330.9
  },
  "luminance": 0.02405
}

Semantic roles & 50–950 ramp

primary
#4C1148
secondary
#338539
accent
#E64D41
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A0309
muted
#7C787B

Preview Lab

Preview with #4C1148

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

Preview Lab → · Contrast checker → · Palette generator →

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