#4C175B#4C175B

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

Color values

HEX#4C175B
RGBrgb(76, 23, 91)
HSLhsl(287, 60%, 22%)
HSVhsv(287, 75%, 36%)
CMYKcmyk(16.5%, 74.7%, 0%, 64.3%)
CIE-LABlab(19.66, 35.81, -29.30)
CIE-LCHlch(19.66, 46.27, 320.70°)
OKLaboklab(32.31% 0.0908 -0.0822)
OKLCHoklch(32.31% 0.123 317.8)
XYZxyz(5.1749, 2.9048, 10.1836)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C175B #265B17
analogous
#2A175B #4C175B #5B1748
triadic
#4C175B #5B4C17 #175B4C
tetradic
#4C175B #5B2A17 #265B17 #17485B
square
#4C175B #5B2A17 #265B17 #17485B
split-complementary
#4C175B #485B17 #175B2A
monochromatic
#140618 #230B2A #4C175B #75238C #9E30BD

Accessibility & contrast

On white

13.28
#4C175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C175B
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C175B#FFFFFF#000000##FFFFFF
##4C175B1.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5D
Deuteranopia (green-blind)
#1A3159
Tritanopia (blue-blind)
#4C2437
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4c175b;
/* rgb */ color: rgb(76, 23, 91);
/* oklch */ color: oklch(32.3% 0.123 317.8);
Tailwind
colors: {
  custom: {
    50: '#81598a',
    500: '#4c175b',
    950: '#000000',
  },
}
SCSS
$custom: #4c175b;
$custom-light: #81598a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c175b",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 286.765,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32308,
    "c": 0.12254,
    "h": 317.8
  },
  "luminance": 0.02905
}

Semantic roles & 50–950 ramp

primary
#4C175B
secondary
#4F923C
accent
#E34568
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4C175B

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

Preview Lab → · Contrast checker → · Palette generator →

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