#4C115C#4C115C

#4C115C is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.8% C 0.131 H 317.9°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#4C115C
RGBrgb(76, 17, 92)
HSLhsl(287, 69%, 21%)
HSVhsv(287, 82%, 36%)
CMYKcmyk(17.4%, 81.5%, 0%, 63.9%)
CIE-LABlab(18.84, 38.55, -31.28)
CIE-LCHlch(18.84, 49.64, 320.94°)
OKLaboklab(31.75% 0.0973 -0.088)
OKLCHoklch(31.75% 0.131 317.9)
XYZxyz(5.1124, 2.7103, 10.3770)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C115C #215C11
analogous
#27115C #4C115C #5C1147
triadic
#4C115C #5C4C11 #115C4C
tetradic
#4C115C #5C2711 #215C11 #11475C
square
#4C115C #5C2711 #215C11 #11475C
split-complementary
#4C115C #475C11 #115C27
monochromatic
#15051A #210728 #4C115C #771B90 #A124C3

Accessibility & contrast

On white

13.62
#4C115C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#4C115C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C115C
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C115C#FFFFFF#000000##FFFFFF
##4C115C1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5E
Deuteranopia (green-blind)
#14305A
Tritanopia (blue-blind)
#4B2136
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4c115c;
/* rgb */ color: rgb(76, 17, 92);
/* oklch */ color: oklch(31.8% 0.131 317.9);
Tailwind
colors: {
  custom: {
    50: '#81578b',
    500: '#4c115c',
    950: '#000000',
  },
}
SCSS
$custom: #4c115c;
$custom-light: #81578b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c115c",
  "rgb": {
    "r": 76,
    "g": 17,
    "b": 92
  },
  "hsl": {
    "h": 287.2,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.31752,
    "c": 0.13118,
    "h": 317.9
  },
  "luminance": 0.0271
}

Semantic roles & 50–950 ramp

primary
#4C115C
secondary
#499534
accent
#EC3C62
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4C115C

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

Preview Lab → · Contrast checker → · Palette generator →

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