#4C154A#4C154A

#4C154A is a dark, moderate purple. Relative luminance 0.026; OKLCH L 30.9% C 0.109 H 329.3°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#4C154A
RGBrgb(76, 21, 74)
HSLhsl(302, 57%, 19%)
HSVhsv(302, 72%, 30%)
CMYKcmyk(0%, 72.4%, 2.6%, 70.2%)
CIE-LABlab(18.22, 33.17, -20.10)
CIE-LCHlch(18.22, 38.78, 328.78°)
OKLaboklab(30.92% 0.0934 -0.0554)
OKLCHoklch(30.92% 0.109 329.3)
XYZxyz(4.4846, 2.5676, 6.7366)
Luminance0.0257 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C154A #154C17
analogous
#33154C #4C154A #4C152F
triadic
#4C154A #4A4C15 #154A4C
tetradic
#4C154A #4C3315 #154C17 #152F4C
square
#4C154A #4C3315 #154C17 #152F4C
split-complementary
#4C154A #2F4C15 #154C33
monochromatic
#180717 #1C081B #4C154A #7C2279 #AC2FA7

Accessibility & contrast

On white

13.88
#4C154A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C154A
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C154A#FFFFFF#000000##FFFFFF
##4C154A1.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F284C
Deuteranopia (green-blind)
#242F49
Tritanopia (blue-blind)
#4F1C2D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4c154a;
/* rgb */ color: rgb(76, 21, 74);
/* oklch */ color: oklch(30.9% 0.109 329.3);
Tailwind
colors: {
  custom: {
    50: '#80587d',
    500: '#4c154a',
    950: '#000000',
  },
}
SCSS
$custom: #4c154a;
$custom-light: #80587d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c154a",
  "rgb": {
    "r": 76,
    "g": 21,
    "b": 74
  },
  "hsl": {
    "h": 302.182,
    "s": 56.701,
    "l": 19.02
  },
  "oklch": {
    "l": 0.30916,
    "c": 0.10863,
    "h": 329.3
  },
  "luminance": 0.02567
}

Semantic roles & 50–950 ramp

primary
#4C154A
secondary
#39843C
accent
#E04D48
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A0309
muted
#7C787B

Preview Lab

Preview with #4C154A

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

Preview Lab → · Contrast checker → · Palette generator →

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