#4C145A#4C145A

#4C145A is a dark, vivid purple. Relative luminance 0.028; OKLCH L 31.9% C 0.126 H 318.7°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#4C145A
RGBrgb(76, 20, 90)
HSLhsl(288, 64%, 22%)
HSVhsv(288, 78%, 35%)
CMYKcmyk(15.6%, 77.8%, 0%, 64.7%)
CIE-LABlab(19.12, 36.91, -29.50)
CIE-LCHlch(19.12, 47.25, 321.37°)
OKLaboklab(31.9% 0.0944 -0.0828)
OKLCHoklch(31.9% 0.126 318.7)
XYZxyz(5.0759, 2.7752, 9.9392)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C145A #225A14
analogous
#29145A #4C145A #5A1445
triadic
#4C145A #5A4C14 #145A4C
tetradic
#4C145A #5A2914 #225A14 #14455A
square
#4C145A #5A2914 #225A14 #14455A
split-complementary
#4C145A #455A14 #145A29
monochromatic
#150619 #220928 #4C145A #761F8C #A12ABE

Accessibility & contrast

On white

13.50
#4C145A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#4C145A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C145A
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C145A#FFFFFF#000000##FFFFFF
##4C145A1.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5C
Deuteranopia (green-blind)
#183058
Tritanopia (blue-blind)
#4C2236
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4c145a;
/* rgb */ color: rgb(76, 20, 90);
/* oklch */ color: oklch(31.9% 0.126 318.7);
Tailwind
colors: {
  custom: {
    50: '#815889',
    500: '#4c145a',
    950: '#000000',
  },
}
SCSS
$custom: #4c145a;
$custom-light: #815889;
$custom-dark: #000000;
JSON
{
  "hex": "#4c145a",
  "rgb": {
    "r": 76,
    "g": 20,
    "b": 90
  },
  "hsl": {
    "h": 288,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.31901,
    "c": 0.12555,
    "h": 318.7
  },
  "luminance": 0.02775
}

Semantic roles & 50–950 ramp

primary
#4C145A
secondary
#4A9238
accent
#E74162
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4C145A

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

Preview Lab → · Contrast checker → · Palette generator →

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