#4C165E#4C165E

#4C165E is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.4% C 0.127 H 316.3°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#4C165E
RGBrgb(76, 22, 94)
HSLhsl(285, 62%, 23%)
HSVhsv(285, 77%, 37%)
CMYKcmyk(19.1%, 76.6%, 0%, 63.1%)
CIE-LABlab(19.72, 36.93, -31.21)
CIE-LCHlch(19.72, 48.35, 319.80°)
OKLaboklab(32.42% 0.0917 -0.0878)
OKLCHoklch(32.42% 0.127 316.3)
XYZxyz(5.2875, 2.9187, 10.8723)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C165E #285E16
analogous
#28165E #4C165E #5E164C
triadic
#4C165E #5E4C16 #165E4C
tetradic
#4C165E #5E2816 #285E16 #164C5E
square
#4C165E #5E2816 #285E16 #164C5E
split-complementary
#4C165E #4C5E16 #165E28
monochromatic
#140619 #240A2C #4C165E #742290 #9C2DC1

Accessibility & contrast

On white

13.26
#4C165E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#4C165E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C165E
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C165E#FFFFFF#000000##FFFFFF
##4C165E1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C60
Deuteranopia (green-blind)
#16315C
Tritanopia (blue-blind)
#4B2538
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4c165e;
/* rgb */ color: rgb(76, 22, 94);
/* oklch */ color: oklch(32.4% 0.127 316.3);
Tailwind
colors: {
  custom: {
    50: '#81598c',
    500: '#4c165e',
    950: '#000000',
  },
}
SCSS
$custom: #4c165e;
$custom-light: #81598c;
$custom-dark: #000000;
JSON
{
  "hex": "#4c165e",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 94
  },
  "hsl": {
    "h": 285,
    "s": 62.069,
    "l": 22.745
  },
  "oklch": {
    "l": 0.32417,
    "c": 0.12698,
    "h": 316.3
  },
  "luminance": 0.02918
}

Semantic roles & 50–950 ramp

primary
#4C165E
secondary
#51953B
accent
#E5436B
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4C165E

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

Preview Lab → · Contrast checker → · Palette generator →

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