#4C145C#4C145C

#4C145C is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.0% C 0.128 H 317.6°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#4C145C
RGBrgb(76, 20, 92)
HSLhsl(287, 64%, 22%)
HSVhsv(287, 78%, 36%)
CMYKcmyk(17.4%, 78.3%, 0%, 63.9%)
CIE-LABlab(19.27, 37.35, -30.60)
CIE-LCHlch(19.27, 48.28, 320.67°)
OKLaboklab(32.05% 0.0942 -0.086)
OKLCHoklch(32.05% 0.128 317.6)
XYZxyz(5.1621, 2.8097, 10.3936)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C145C #245C14
analogous
#28145C #4C145C #5C1448
triadic
#4C145C #5C4C14 #145C4C
tetradic
#4C145C #5C2814 #245C14 #14485C
square
#4C145C #5C2814 #245C14 #14485C
split-complementary
#4C145C #485C14 #145C28
monochromatic
#150519 #22092A #4C145C #761F8E #9F2AC1

Accessibility & contrast

On white

13.44
#4C145C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C145C
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C145C#FFFFFF#000000##FFFFFF
##4C145C1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5E
Deuteranopia (green-blind)
#16305A
Tritanopia (blue-blind)
#4B2337
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4c145c;
/* rgb */ color: rgb(76, 20, 92);
/* oklch */ color: oklch(32.0% 0.128 317.6);
Tailwind
colors: {
  custom: {
    50: '#81588b',
    500: '#4c145c',
    950: '#000000',
  },
}
SCSS
$custom: #4c145c;
$custom-light: #81588b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c145c",
  "rgb": {
    "r": 76,
    "g": 20,
    "b": 92
  },
  "hsl": {
    "h": 286.667,
    "s": 64.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.3205,
    "c": 0.12755,
    "h": 317.6
  },
  "luminance": 0.0281
}

Semantic roles & 50–950 ramp

primary
#4C145C
secondary
#4C9438
accent
#E74166
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4C145C

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

Preview Lab → · Contrast checker → · Palette generator →

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