#4C165A#4C165A

#4C165A is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.1% C 0.123 H 318.5°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#4C165A
RGBrgb(76, 22, 90)
HSLhsl(288, 61%, 22%)
HSVhsv(288, 76%, 35%)
CMYKcmyk(15.6%, 75.6%, 0%, 64.7%)
CIE-LABlab(19.43, 36.04, -29.01)
CIE-LCHlch(19.43, 46.26, 321.17°)
OKLaboklab(32.12% 0.0921 -0.0814)
OKLCHoklch(32.12% 0.123 318.5)
XYZxyz(5.1126, 2.8487, 9.9514)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C165A #245A16
analogous
#2A165A #4C165A #5A1646
triadic
#4C165A #5A4C16 #165A4C
tetradic
#4C165A #5A2A16 #245A16 #16465A
square
#4C165A #5A2A16 #245A16 #16465A
split-complementary
#4C165A #465A16 #165A2A
monochromatic
#150619 #220A29 #4C165A #76228B #9F2EBC

Accessibility & contrast

On white

13.38
#4C165A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#4C165A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C165A
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C165A#FFFFFF#000000##FFFFFF
##4C165A1.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5C
Deuteranopia (green-blind)
#1A3158
Tritanopia (blue-blind)
#4C2336
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4c165a;
/* rgb */ color: rgb(76, 22, 90);
/* oklch */ color: oklch(32.1% 0.123 318.5);
Tailwind
colors: {
  custom: {
    50: '#815989',
    500: '#4c165a',
    950: '#000000',
  },
}
SCSS
$custom: #4c165a;
$custom-light: #815989;
$custom-dark: #000000;
JSON
{
  "hex": "#4c165a",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 90
  },
  "hsl": {
    "h": 287.647,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.3212,
    "c": 0.12289,
    "h": 318.5
  },
  "luminance": 0.02849
}

Semantic roles & 50–950 ramp

primary
#4C165A
secondary
#4C913B
accent
#E44465
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4C165A

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

Preview Lab → · Contrast checker → · Palette generator →

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