#4C154D#4C154D

#4C154D is a dark, moderate purple. Relative luminance 0.026; OKLCH L 31.1% C 0.111 H 327.1°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#4C154D
RGBrgb(76, 21, 77)
HSLhsl(299, 57%, 19%)
HSVhsv(299, 73%, 30%)
CMYKcmyk(1.3%, 72.7%, 0%, 69.8%)
CIE-LABlab(18.40, 33.76, -21.86)
CIE-LCHlch(18.40, 40.22, 327.07°)
OKLaboklab(31.11% 0.0936 -0.0605)
OKLCHoklch(31.11% 0.111 327.1)
XYZxyz(4.5881, 2.6090, 7.2817)
Luminance0.0261 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C154D #164D15
analogous
#30154D #4C154D #4D1532
triadic
#4C154D #4D4C15 #154D4C
tetradic
#4C154D #4D3015 #164D15 #15324D
square
#4C154D #4D3015 #164D15 #15324D
split-complementary
#4C154D #324D15 #154D30
monochromatic
#180718 #1D081D #4C154D #7B227D #AB2FAD

Accessibility & contrast

On white

13.80
#4C154D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#4C154D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C154D
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C154D#FFFFFF#000000##FFFFFF
##4C154D1.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C284F
Deuteranopia (green-blind)
#222F4C
Tritanopia (blue-blind)
#4E1D2F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4c154d;
/* rgb */ color: rgb(76, 21, 77);
/* oklch */ color: oklch(31.1% 0.111 327.1);
Tailwind
colors: {
  custom: {
    50: '#80587f',
    500: '#4c154d',
    950: '#000000',
  },
}
SCSS
$custom: #4c154d;
$custom-light: #80587f;
$custom-dark: #000000;
JSON
{
  "hex": "#4c154d",
  "rgb": {
    "r": 76,
    "g": 21,
    "b": 77
  },
  "hsl": {
    "h": 298.929,
    "s": 57.143,
    "l": 19.216
  },
  "oklch": {
    "l": 0.31108,
    "c": 0.11145,
    "h": 327.1
  },
  "luminance": 0.02609
}

Semantic roles & 50–950 ramp

primary
#4C154D
secondary
#3A8539
accent
#E0474A
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A030A
muted
#7C787C

Preview Lab

Preview with #4C154D

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

Preview Lab → · Contrast checker → · Palette generator →

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