#4C165D#4C165D

#4C165D is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.3% C 0.126 H 316.8°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#4C165D
RGBrgb(76, 22, 93)
HSLhsl(286, 62%, 23%)
HSVhsv(286, 76%, 36%)
CMYKcmyk(18.3%, 76.3%, 0%, 63.5%)
CIE-LABlab(19.64, 36.70, -30.66)
CIE-LCHlch(19.64, 47.83, 320.12°)
OKLaboklab(32.34% 0.0918 -0.0862)
OKLCHoklch(32.34% 0.126 316.8)
XYZxyz(5.2429, 2.9008, 10.6376)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C165D #275D16
analogous
#29165D #4C165D #5D164A
triadic
#4C165D #5D4C16 #165D4C
tetradic
#4C165D #5D2916 #275D16 #164A5D
square
#4C165D #5D2916 #275D16 #164A5D
split-complementary
#4C165D #4A5D16 #165D29
monochromatic
#140619 #240A2C #4C165D #74228E #9D2DC0

Accessibility & contrast

On white

13.29
#4C165D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C165D
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C165D#FFFFFF#000000##FFFFFF
##4C165D1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5F
Deuteranopia (green-blind)
#17315B
Tritanopia (blue-blind)
#4B2438
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4c165d;
/* rgb */ color: rgb(76, 22, 93);
/* oklch */ color: oklch(32.3% 0.126 316.8);
Tailwind
colors: {
  custom: {
    50: '#81598b',
    500: '#4c165d',
    950: '#000000',
  },
}
SCSS
$custom: #4c165d;
$custom-light: #81598b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c165d",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 93
  },
  "hsl": {
    "h": 285.634,
    "s": 61.739,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32342,
    "c": 0.12596,
    "h": 316.8
  },
  "luminance": 0.02901
}

Semantic roles & 50–950 ramp

primary
#4C165D
secondary
#50943B
accent
#E5436A
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4C165D

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

Preview Lab → · Contrast checker → · Palette generator →

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