#4C1248#4C1248

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

Color values

HEX#4C1248
RGBrgb(76, 18, 72)
HSLhsl(304, 62%, 18%)
HSVhsv(304, 76%, 30%)
CMYKcmyk(0%, 76.3%, 5.3%, 70.2%)
CIE-LABlab(17.63, 34.11, -19.65)
CIE-LCHlch(17.63, 39.36, 330.05°)
OKLaboklab(30.45% 0.0971 -0.0541)
OKLCHoklch(30.45% 0.111 330.9)
XYZxyz(4.3665, 2.4373, 6.3701)
Luminance0.0244 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1248 #124C16
analogous
#33124C #4C1248 #4C122B
triadic
#4C1248 #484C12 #12484C
tetradic
#4C1248 #4C3312 #124C16 #122B4C
square
#4C1248 #4C3312 #124C16 #122B4C
split-complementary
#4C1248 #2B4C12 #124C33
monochromatic
#190617 #1B0619 #4C1248 #7D1E77 #AF29A6

Accessibility & contrast

On white

14.12
#4C1248 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#4C1248 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1248
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1248#FFFFFF#000000##FFFFFF
##4C12481.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c1248;
/* rgb */ color: rgb(76, 18, 72);
/* oklch */ color: oklch(30.5% 0.111 330.9);
Tailwind
colors: {
  custom: {
    50: '#80567b',
    500: '#4c1248',
    950: '#000000',
  },
}
SCSS
$custom: #4c1248;
$custom-light: #80567b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1248",
  "rgb": {
    "r": 76,
    "g": 18,
    "b": 72
  },
  "hsl": {
    "h": 304.138,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.30452,
    "c": 0.11113,
    "h": 330.9
  },
  "luminance": 0.02437
}

Semantic roles & 50–950 ramp

primary
#4C1248
secondary
#35853A
accent
#E54E43
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A0309
muted
#7C787B

Preview Lab

Preview with #4C1248

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

Preview Lab → · Contrast checker → · Palette generator →

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