#4C115A#4C115A

#4C115A is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.6% C 0.129 H 319.0°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#4C115A
RGBrgb(76, 17, 90)
HSLhsl(288, 68%, 21%)
HSVhsv(288, 81%, 35%)
CMYKcmyk(15.6%, 81.1%, 0%, 64.7%)
CIE-LABlab(18.70, 38.12, -30.18)
CIE-LCHlch(18.70, 48.62, 321.63°)
OKLaboklab(31.6% 0.0976 -0.0848)
OKLCHoklch(31.6% 0.129 319)
XYZxyz(5.0262, 2.6758, 9.9226)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C115A #1F5A11
analogous
#27115A #4C115A #5A1143
triadic
#4C115A #5A4C11 #115A4C
tetradic
#4C115A #5A2711 #1F5A11 #11435A
square
#4C115A #5A2711 #1F5A11 #11435A
split-complementary
#4C115A #435A11 #115A27
monochromatic
#16051A #210727 #4C115A #771B8D #A324C1

Accessibility & contrast

On white

13.68
#4C115A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C115A
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C115A#FFFFFF#000000##FFFFFF
##4C115A1.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5C
Deuteranopia (green-blind)
#162F58
Tritanopia (blue-blind)
#4C2035
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4c115a;
/* rgb */ color: rgb(76, 17, 90);
/* oklch */ color: oklch(31.6% 0.129 319.0);
Tailwind
colors: {
  custom: {
    50: '#815789',
    500: '#4c115a',
    950: '#000000',
  },
}
SCSS
$custom: #4c115a;
$custom-light: #815789;
$custom-dark: #000000;
JSON
{
  "hex": "#4c115a",
  "rgb": {
    "r": 76,
    "g": 17,
    "b": 90
  },
  "hsl": {
    "h": 288.493,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.31599,
    "c": 0.12924,
    "h": 319
  },
  "luminance": 0.02676
}

Semantic roles & 50–950 ramp

primary
#4C115A
secondary
#469334
accent
#EB3D5E
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4C115A

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

Preview Lab → · Contrast checker → · Palette generator →

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