#4C115E#4C115E

#4C115E is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.9% C 0.133 H 316.8°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#4C115E
RGBrgb(76, 17, 94)
HSLhsl(286, 69%, 22%)
HSVhsv(286, 82%, 37%)
CMYKcmyk(19.1%, 81.9%, 0%, 63.1%)
CIE-LABlab(19.00, 38.98, -32.37)
CIE-LCHlch(19.00, 50.67, 320.30°)
OKLaboklab(31.91% 0.097 -0.0912)
OKLCHoklch(31.91% 0.133 316.8)
XYZxyz(5.2010, 2.7458, 10.8435)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C115E #235E11
analogous
#26115E #4C115E #5E114A
triadic
#4C115E #5E4C11 #115E4C
tetradic
#4C115E #5E2611 #235E11 #114A5E
square
#4C115E #5E2611 #235E11 #114A5E
split-complementary
#4C115E #4A5E11 #115E26
monochromatic
#15051A #22082A #4C115E #761A92 #A024C6

Accessibility & contrast

On white

13.56
#4C115E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C115E
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C115E#FFFFFF#000000##FFFFFF
##4C115E1.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B60
Deuteranopia (green-blind)
#12305C
Tritanopia (blue-blind)
#4B2237
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4c115e;
/* rgb */ color: rgb(76, 17, 94);
/* oklch */ color: oklch(31.9% 0.133 316.8);
Tailwind
colors: {
  custom: {
    50: '#81578c',
    500: '#4c115e',
    950: '#000000',
  },
}
SCSS
$custom: #4c115e;
$custom-light: #81578c;
$custom-dark: #000000;
JSON
{
  "hex": "#4c115e",
  "rgb": {
    "r": 76,
    "g": 17,
    "b": 94
  },
  "hsl": {
    "h": 285.974,
    "s": 69.369,
    "l": 21.765
  },
  "oklch": {
    "l": 0.31907,
    "c": 0.13311,
    "h": 316.8
  },
  "luminance": 0.02746
}

Semantic roles & 50–950 ramp

primary
#4C115E
secondary
#4B9734
accent
#EC3C65
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4C115E

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

Preview Lab → · Contrast checker → · Palette generator →

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