#4C155A#4C155A

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

Color values

HEX#4C155A
RGBrgb(76, 21, 90)
HSLhsl(288, 62%, 22%)
HSVhsv(288, 77%, 35%)
CMYKcmyk(15.6%, 76.7%, 0%, 64.7%)
CIE-LABlab(19.27, 36.48, -29.26)
CIE-LCHlch(19.27, 46.76, 321.27°)
OKLaboklab(32.01% 0.0933 -0.0821)
OKLCHoklch(32.01% 0.124 318.6)
XYZxyz(5.0939, 2.8113, 9.9452)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C155A #235A15
analogous
#2A155A #4C155A #5A1546
triadic
#4C155A #5A4C15 #155A4C
tetradic
#4C155A #5A2A15 #235A15 #15465A
square
#4C155A #5A2A15 #235A15 #15465A
split-complementary
#4C155A #465A15 #155A2A
monochromatic
#150619 #220928 #4C155A #76218C #A02CBD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C155A#FFFFFF#000000##FFFFFF
##4C155A1.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)
#002B5C
Deuteranopia (green-blind)
#193158
Tritanopia (blue-blind)
#4C2336
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4c155a;
/* rgb */ color: rgb(76, 21, 90);
/* oklch */ color: oklch(32.0% 0.124 318.6);
Tailwind
colors: {
  custom: {
    50: '#815889',
    500: '#4c155a',
    950: '#000000',
  },
}
SCSS
$custom: #4c155a;
$custom-light: #815889;
$custom-dark: #000000;
JSON
{
  "hex": "#4c155a",
  "rgb": {
    "r": 76,
    "g": 21,
    "b": 90
  },
  "hsl": {
    "h": 287.826,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.32009,
    "c": 0.12424,
    "h": 318.6
  },
  "luminance": 0.02811
}

Semantic roles & 50–950 ramp

primary
#4C155A
secondary
#4B9239
accent
#E54364
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4C155A

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

Preview Lab → · Contrast checker → · Palette generator →

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