#4C175C#4C175C

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

Color values

HEX#4C175C
RGBrgb(76, 23, 92)
HSLhsl(286, 60%, 23%)
HSVhsv(286, 75%, 36%)
CMYKcmyk(17.4%, 75%, 0%, 63.9%)
CIE-LABlab(19.73, 36.03, -29.86)
CIE-LCHlch(19.73, 46.79, 320.35°)
OKLaboklab(32.38% 0.0908 -0.0838)
OKLCHoklch(32.38% 0.124 317.3)
XYZxyz(5.2184, 2.9222, 10.4123)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C175C #275C17
analogous
#2A175C #4C175C #5C1749
triadic
#4C175C #5C4C17 #175C4C
tetradic
#4C175C #5C2A17 #275C17 #17495C
square
#4C175C #5C2A17 #275C17 #17495C
split-complementary
#4C175C #495C17 #175C2A
monochromatic
#140618 #240B2B #4C175C #74238D #9D2FBE

Accessibility & contrast

On white

13.25
#4C175C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C175C
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C175C#FFFFFF#000000##FFFFFF
##4C175C1.0013.251.5813.25
#FFFFFF13.251.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5E
Deuteranopia (green-blind)
#19315A
Tritanopia (blue-blind)
#4B2537
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4c175c;
/* rgb */ color: rgb(76, 23, 92);
/* oklch */ color: oklch(32.4% 0.124 317.3);
Tailwind
colors: {
  custom: {
    50: '#81598a',
    500: '#4c175c',
    950: '#000000',
  },
}
SCSS
$custom: #4c175c;
$custom-light: #81598a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c175c",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 92
  },
  "hsl": {
    "h": 286.087,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32381,
    "c": 0.12357,
    "h": 317.3
  },
  "luminance": 0.02922
}

Semantic roles & 50–950 ramp

primary
#4C175C
secondary
#50933C
accent
#E34569
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4C175C

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

Preview Lab → · Contrast checker → · Palette generator →

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