#4C175D#4C175D

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

Color values

HEX#4C175D
RGBrgb(76, 23, 93)
HSLhsl(285, 60%, 23%)
HSVhsv(285, 75%, 36%)
CMYKcmyk(18.3%, 75.3%, 0%, 63.5%)
CIE-LABlab(19.80, 36.25, -30.41)
CIE-LCHlch(19.80, 47.32, 320.01°)
OKLaboklab(32.46% 0.0907 -0.0855)
OKLCHoklch(32.46% 0.125 316.7)
XYZxyz(5.2624, 2.9398, 10.6440)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C175D #285D17
analogous
#29175D #4C175D #5D174B
triadic
#4C175D #5D4C17 #175D4C
tetradic
#4C175D #5D2917 #285D17 #174B5D
square
#4C175D #5D2917 #285D17 #174B5D
split-complementary
#4C175D #4B5D17 #175D29
monochromatic
#140619 #240B2C #4C175D #74238E #9C2FBF

Accessibility & contrast

On white

13.22
#4C175D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C175D
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C175D#FFFFFF#000000##FFFFFF
##4C175D1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5F
Deuteranopia (green-blind)
#18315B
Tritanopia (blue-blind)
#4B2538
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4c175d;
/* rgb */ color: rgb(76, 23, 93);
/* oklch */ color: oklch(32.5% 0.125 316.7);
Tailwind
colors: {
  custom: {
    50: '#81598b',
    500: '#4c175d',
    950: '#000000',
  },
}
SCSS
$custom: #4c175d;
$custom-light: #81598b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c175d",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 93
  },
  "hsl": {
    "h": 285.429,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.32455,
    "c": 0.12461,
    "h": 316.7
  },
  "luminance": 0.0294
}

Semantic roles & 50–950 ramp

primary
#4C175D
secondary
#51943C
accent
#E3446B
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4C175D

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

Preview Lab → · Contrast checker → · Palette generator →

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