#4C2147#4C2147

#4C2147 is a dark, moderate purple. Relative luminance 0.031; OKLCH L 32.4% C 0.085 H 331.9°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#4C2147
RGBrgb(76, 33, 71)
HSLhsl(307, 39%, 21%)
HSVhsv(307, 57%, 30%)
CMYKcmyk(0%, 56.6%, 6.6%, 70.2%)
CIE-LABlab(20.36, 26.30, -14.70)
CIE-LCHlch(20.36, 30.13, 330.79°)
OKLaboklab(32.43% 0.075 -0.04)
OKLCHoklch(32.43% 0.085 331.9)
XYZxyz(4.6617, 3.0794, 6.3089)
Luminance0.0308 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2147 #214C26
analogous
#3C214C #4C2147 #4C2132
triadic
#4C2147 #474C21 #21474C
tetradic
#4C2147 #4C3C21 #214C26 #21324C
square
#4C2147 #4C3C21 #214C26 #21324C
split-complementary
#4C2147 #324C21 #214C3C
monochromatic
#150914 #210E1F #4C2147 #77346F #A14697

Accessibility & contrast

On white

13.00
#4C2147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4C2147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2147
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2147#FFFFFF#000000##FFFFFF
##4C21471.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202D48
Deuteranopia (green-blind)
#2C3346
Tritanopia (blue-blind)
#4F2430
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4c2147;
/* rgb */ color: rgb(76, 33, 71);
/* oklch */ color: oklch(32.4% 0.085 331.9);
Tailwind
colors: {
  custom: {
    50: '#7f5e7a',
    500: '#4c2147',
    950: '#000000',
  },
}
SCSS
$custom: #4c2147;
$custom-light: #7f5e7a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2147",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 71
  },
  "hsl": {
    "h": 306.977,
    "s": 39.45,
    "l": 21.373
  },
  "oklch": {
    "l": 0.32427,
    "c": 0.08503,
    "h": 331.9
  },
  "luminance": 0.03079
}

Semantic roles & 50–950 ramp

primary
#4C2147
secondary
#49804F
accent
#CF6658
background
#F7F5F7
surface
#EEE9ED
border
#C9C5C8
text
#0A0409
muted
#7C797B

Preview Lab

Preview with #4C2147

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

Preview Lab → · Contrast checker → · Palette generator →

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