#4C115D#4C115D

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

Color values

HEX#4C115D
RGBrgb(76, 17, 93)
HSLhsl(287, 69%, 22%)
HSVhsv(287, 82%, 36%)
CMYKcmyk(18.3%, 81.7%, 0%, 63.5%)
CIE-LABlab(18.92, 38.77, -31.82)
CIE-LCHlch(18.92, 50.16, 320.62°)
OKLaboklab(31.83% 0.0972 -0.0896)
OKLCHoklch(31.83% 0.132 317.3)
XYZxyz(5.1564, 2.7279, 10.6087)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C115D #225D11
analogous
#26115D #4C115D #5D1148
triadic
#4C115D #5D4C11 #115D4C
tetradic
#4C115D #5D2611 #225D11 #11485D
square
#4C115D #5D2611 #225D11 #11485D
split-complementary
#4C115D #485D11 #115D26
monochromatic
#15051A #220829 #4C115D #761A91 #A124C4

Accessibility & contrast

On white

13.59
#4C115D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#4C115D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C115D
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C115D#FFFFFF#000000##FFFFFF
##4C115D1.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5F
Deuteranopia (green-blind)
#13305B
Tritanopia (blue-blind)
#4B2236
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4c115d;
/* rgb */ color: rgb(76, 17, 93);
/* oklch */ color: oklch(31.8% 0.132 317.3);
Tailwind
colors: {
  custom: {
    50: '#81578b',
    500: '#4c115d',
    950: '#000000',
  },
}
SCSS
$custom: #4c115d;
$custom-light: #81578b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c115d",
  "rgb": {
    "r": 76,
    "g": 17,
    "b": 93
  },
  "hsl": {
    "h": 286.579,
    "s": 69.091,
    "l": 21.569
  },
  "oklch": {
    "l": 0.31829,
    "c": 0.13215,
    "h": 317.3
  },
  "luminance": 0.02728
}

Semantic roles & 50–950 ramp

primary
#4C115D
secondary
#4A9634
accent
#EC3C63
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4C115D

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

Preview Lab → · Contrast checker → · Palette generator →

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