#4C165F#4C165F

#4C165F is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.5% C 0.128 H 315.7°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#4C165F
RGBrgb(76, 22, 95)
HSLhsl(284, 62%, 23%)
HSVhsv(284, 77%, 37%)
CMYKcmyk(20%, 76.8%, 0%, 62.7%)
CIE-LABlab(19.79, 37.15, -31.75)
CIE-LCHlch(19.79, 48.87, 319.48°)
OKLaboklab(32.49% 0.0916 -0.0894)
OKLCHoklch(32.49% 0.128 315.7)
XYZxyz(5.3326, 2.9367, 11.1102)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C165F #295F16
analogous
#28165F #4C165F #5F164D
triadic
#4C165F #5F4C16 #165F4C
tetradic
#4C165F #5F2816 #295F16 #164D5F
square
#4C165F #5F2816 #295F16 #164D5F
split-complementary
#4C165F #4D5F16 #165F28
monochromatic
#140619 #240A2D #4C165F #742291 #9C2DC2

Accessibility & contrast

On white

13.23
#4C165F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#4C165F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C165F
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C165F#FFFFFF#000000##FFFFFF
##4C165F1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D61
Deuteranopia (green-blind)
#15315D
Tritanopia (blue-blind)
#4B2539
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4c165f;
/* rgb */ color: rgb(76, 22, 95);
/* oklch */ color: oklch(32.5% 0.128 315.7);
Tailwind
colors: {
  custom: {
    50: '#81598d',
    500: '#4c165f',
    950: '#000000',
  },
}
SCSS
$custom: #4c165f;
$custom-light: #81598d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c165f",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 95
  },
  "hsl": {
    "h": 284.384,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.32493,
    "c": 0.12801,
    "h": 315.7
  },
  "luminance": 0.02937
}

Semantic roles & 50–950 ramp

primary
#4C165F
secondary
#53963B
accent
#E5426D
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4C165F

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

Preview Lab → · Contrast checker → · Palette generator →

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