#4C185A#4C185A

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

Color values

HEX#4C185A
RGBrgb(76, 24, 90)
HSLhsl(287, 58%, 22%)
HSVhsv(287, 73%, 35%)
CMYKcmyk(15.6%, 73.3%, 0%, 64.7%)
CIE-LABlab(19.75, 35.12, -28.48)
CIE-LCHlch(19.75, 45.22, 320.95°)
OKLaboklab(32.35% 0.0897 -0.0798)
OKLCHoklch(32.35% 0.12 318.3)
XYZxyz(5.1523, 2.9282, 9.9647)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C185A #265A18
analogous
#2B185A #4C185A #5A1847
triadic
#4C185A #5A4C18 #185A4C
tetradic
#4C185A #5A2B18 #265A18 #18475A
square
#4C185A #5A2B18 #265A18 #18475A
split-complementary
#4C185A #475A18 #185A2B
monochromatic
#140618 #230B2A #4C185A #75258A #9E32BB

Accessibility & contrast

On white

13.24
#4C185A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C185A
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C185A#FFFFFF#000000##FFFFFF
##4C185A1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c185a;
/* rgb */ color: rgb(76, 24, 90);
/* oklch */ color: oklch(32.4% 0.120 318.3);
Tailwind
colors: {
  custom: {
    50: '#815a89',
    500: '#4c185a',
    950: '#000000',
  },
}
SCSS
$custom: #4c185a;
$custom-light: #815a89;
$custom-dark: #000000;
JSON
{
  "hex": "#4c185a",
  "rgb": {
    "r": 76,
    "g": 24,
    "b": 90
  },
  "hsl": {
    "h": 287.273,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32354,
    "c": 0.12008,
    "h": 318.3
  },
  "luminance": 0.02928
}

Semantic roles & 50–950 ramp

primary
#4C185A
secondary
#4F913D
accent
#E14767
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A040B
muted
#7C797C

Preview Lab

Preview with #4C185A

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

Preview Lab → · Contrast checker → · Palette generator →

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