#4C1151#4C1151

#4C1151 is a dark, vivid purple. Relative luminance 0.025; OKLCH L 30.9% C 0.121 H 324.6°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#4C1151
RGBrgb(76, 17, 81)
HSLhsl(295, 65%, 19%)
HSVhsv(295, 79%, 32%)
CMYKcmyk(6.2%, 79%, 0%, 68.2%)
CIE-LABlab(18.06, 36.26, -25.13)
CIE-LCHlch(18.06, 44.12, 325.28°)
OKLaboklab(30.95% 0.0983 -0.07)
OKLCHoklch(30.95% 0.121 324.6)
XYZxyz(4.6660, 2.5318, 8.0259)
Luminance0.0253 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C1151 #165111
analogous
#2C1151 #4C1151 #511136
triadic
#4C1151 #514C11 #11514C
tetradic
#4C1151 #512C11 #165111 #113651
square
#4C1151 #512C11 #165111 #113651
split-complementary
#4C1151 #365111 #11512C
monochromatic
#180519 #1D061E #4C1151 #7B1C84 #AB26B6

Accessibility & contrast

On white

13.94
#4C1151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#4C1151 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C1151
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C1151#FFFFFF#000000##FFFFFF
##4C11511.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002853
Deuteranopia (green-blind)
#1D2F4F
Tritanopia (blue-blind)
#4E1C30
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4c1151;
/* rgb */ color: rgb(76, 17, 81);
/* oklch */ color: oklch(30.9% 0.121 324.6);
Tailwind
colors: {
  custom: {
    50: '#815682',
    500: '#4c1151',
    950: '#000000',
  },
}
SCSS
$custom: #4c1151;
$custom-light: #815682;
$custom-dark: #000000;
JSON
{
  "hex": "#4c1151",
  "rgb": {
    "r": 76,
    "g": 17,
    "b": 81
  },
  "hsl": {
    "h": 295.313,
    "s": 65.306,
    "l": 19.216
  },
  "oklch": {
    "l": 0.30945,
    "c": 0.1207,
    "h": 324.6
  },
  "luminance": 0.02531
}

Semantic roles & 50–950 ramp

primary
#4C1151
secondary
#3A8A34
accent
#E8404D
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4C1151

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

Preview Lab → · Contrast checker → · Palette generator →

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