#4C145F#4C145F

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

Color values

HEX#4C145F
RGBrgb(76, 20, 95)
HSLhsl(285, 65%, 23%)
HSVhsv(285, 79%, 37%)
CMYKcmyk(20%, 78.9%, 0%, 62.7%)
CIE-LABlab(19.49, 38.01, -32.24)
CIE-LCHlch(19.49, 49.84, 319.70°)
OKLaboklab(32.28% 0.0938 -0.0908)
OKLCHoklch(32.28% 0.131 315.9)
XYZxyz(5.2959, 2.8632, 11.0979)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C145F #275F14
analogous
#27145F #4C145F #5F144C
triadic
#4C145F #5F4C14 #145F4C
tetradic
#4C145F #5F2714 #275F14 #144C5F
square
#4C145F #5F2714 #275F14 #144C5F
split-complementary
#4C145F #4C5F14 #145F27
monochromatic
#140519 #24092C #4C145F #741F92 #9D29C4

Accessibility & contrast

On white

13.35
#4C145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#4C145F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C145F
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C145F#FFFFFF#000000##FFFFFF
##4C145F1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C61
Deuteranopia (green-blind)
#13315D
Tritanopia (blue-blind)
#4B2438
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4c145f;
/* rgb */ color: rgb(76, 20, 95);
/* oklch */ color: oklch(32.3% 0.131 315.9);
Tailwind
colors: {
  custom: {
    50: '#81588d',
    500: '#4c145f',
    950: '#000000',
  },
}
SCSS
$custom: #4c145f;
$custom-light: #81588d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c145f",
  "rgb": {
    "r": 76,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 284.8,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32279,
    "c": 0.13056,
    "h": 315.9
  },
  "luminance": 0.02863
}

Semantic roles & 50–950 ramp

primary
#4C145F
secondary
#509738
accent
#E8406A
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4C145F

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

Preview Lab → · Contrast checker → · Palette generator →

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