#4C164E#4C164E

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

Color values

HEX#4C164E
RGBrgb(76, 22, 78)
HSLhsl(298, 56%, 20%)
HSVhsv(298, 72%, 31%)
CMYKcmyk(2.6%, 71.8%, 0%, 69.4%)
CIE-LABlab(18.63, 33.50, -22.19)
CIE-LCHlch(18.63, 40.18, 326.49°)
OKLaboklab(31.29% 0.0923 -0.0615)
OKLCHoklch(31.29% 0.111 326.3)
XYZxyz(4.6425, 2.6607, 7.4753)
Luminance0.0266 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C164E #184E16
analogous
#30164E #4C164E #4E1634
triadic
#4C164E #4E4C16 #164E4C
tetradic
#4C164E #4E3016 #184E16 #16344E
square
#4C164E #4E3016 #184E16 #16344E
split-complementary
#4C164E #344E16 #164E30
monochromatic
#170718 #1D091E #4C164E #7B237E #A931AD

Accessibility & contrast

On white

13.71
#4C164E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#4C164E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C164E
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C164E#FFFFFF#000000##FFFFFF
##4C164E1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2950
Deuteranopia (green-blind)
#22304D
Tritanopia (blue-blind)
#4E1E30
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4c164e;
/* rgb */ color: rgb(76, 22, 78);
/* oklch */ color: oklch(31.3% 0.111 326.3);
Tailwind
colors: {
  custom: {
    50: '#805880',
    500: '#4c164e',
    950: '#000000',
  },
}
SCSS
$custom: #4c164e;
$custom-light: #805880;
$custom-dark: #000000;
JSON
{
  "hex": "#4c164e",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 78
  },
  "hsl": {
    "h": 297.857,
    "s": 56,
    "l": 19.608
  },
  "oklch": {
    "l": 0.31291,
    "c": 0.11093,
    "h": 326.3
  },
  "luminance": 0.0266
}

Semantic roles & 50–950 ramp

primary
#4C164E
secondary
#3D853A
accent
#DF494E
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A040A
muted
#7C797C

Preview Lab

Preview with #4C164E

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

Preview Lab → · Contrast checker → · Palette generator →

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