#4C1948#4C1948

#4C1948 is a dark, moderate purple. Relative luminance 0.027; OKLCH L 31.3% C 0.100 H 330.9°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#4C1948
RGBrgb(76, 25, 72)
HSLhsl(305, 50%, 20%)
HSVhsv(305, 67%, 30%)
CMYKcmyk(0%, 67.1%, 5.3%, 70.2%)
CIE-LABlab(18.80, 30.85, -17.82)
CIE-LCHlch(18.80, 35.63, 329.99°)
OKLaboklab(31.3% 0.0877 -0.0489)
OKLCHoklch(31.3% 0.1 330.9)
XYZxyz(4.4978, 2.7000, 6.4139)
Luminance0.0270 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1948 #194C1D
analogous
#37194C #4C1948 #4C192F
triadic
#4C1948 #484C19 #19484C
tetradic
#4C1948 #4C3719 #194C1D #192F4C
square
#4C1948 #4C3719 #194C1D #192F4C
split-complementary
#4C1948 #2F4C19 #194C37
monochromatic
#170816 #1E0A1C #4C1948 #7A2874 #A8379F

Accessibility & contrast

On white

13.64
#4C1948 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#4C1948 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1948
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1948#FFFFFF#000000##FFFFFF
##4C19481.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162949
Deuteranopia (green-blind)
#273047
Tritanopia (blue-blind)
#4F1E2D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4c1948;
/* rgb */ color: rgb(76, 25, 72);
/* oklch */ color: oklch(31.3% 0.100 330.9);
Tailwind
colors: {
  custom: {
    50: '#805a7b',
    500: '#4c1948',
    950: '#000000',
  },
}
SCSS
$custom: #4c1948;
$custom-light: #805a7b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1948",
  "rgb": {
    "r": 76,
    "g": 25,
    "b": 72
  },
  "hsl": {
    "h": 304.706,
    "s": 50.495,
    "l": 19.804
  },
  "oklch": {
    "l": 0.31299,
    "c": 0.1004,
    "h": 330.9
  },
  "luminance": 0.027
}

Semantic roles & 50–950 ramp

primary
#4C1948
secondary
#3E8244
accent
#DA594E
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0A0409
muted
#7C797B

Preview Lab

Preview with #4C1948

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

Preview Lab → · Contrast checker → · Palette generator →

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