#4C165B#4C165B

#4C165B is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.2% C 0.124 H 318.0°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#4C165B
RGBrgb(76, 22, 91)
HSLhsl(287, 61%, 22%)
HSVhsv(287, 76%, 36%)
CMYKcmyk(16.5%, 75.8%, 0%, 64.3%)
CIE-LABlab(19.50, 36.26, -29.56)
CIE-LCHlch(19.50, 46.78, 320.81°)
OKLaboklab(32.19% 0.092 -0.083)
OKLCHoklch(32.19% 0.124 318)
XYZxyz(5.1555, 2.8659, 10.1771)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C165B #255B16
analogous
#2A165B #4C165B #5B1647
triadic
#4C165B #5B4C16 #165B4C
tetradic
#4C165B #5B2A16 #255B16 #16475B
square
#4C165B #5B2A16 #255B16 #16475B
split-complementary
#4C165B #475B16 #165B2A
monochromatic
#150619 #230A2A #4C165B #75228C #9E2EBE

Accessibility & contrast

On white

13.35
#4C165B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C165B
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C165B#FFFFFF#000000##FFFFFF
##4C165B1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5D
Deuteranopia (green-blind)
#193159
Tritanopia (blue-blind)
#4C2437
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4c165b;
/* rgb */ color: rgb(76, 22, 91);
/* oklch */ color: oklch(32.2% 0.124 318.0);
Tailwind
colors: {
  custom: {
    50: '#81598a',
    500: '#4c165b',
    950: '#000000',
  },
}
SCSS
$custom: #4c165b;
$custom-light: #81598a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c165b",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 91
  },
  "hsl": {
    "h": 286.957,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32193,
    "c": 0.12391,
    "h": 318
  },
  "luminance": 0.02866
}

Semantic roles & 50–950 ramp

primary
#4C165B
secondary
#4E923B
accent
#E44467
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4C165B

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

Preview Lab → · Contrast checker → · Palette generator →

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