#4C115F#4C115F

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

Color values

HEX#4C115F
RGBrgb(76, 17, 95)
HSLhsl(285, 70%, 22%)
HSVhsv(285, 82%, 37%)
CMYKcmyk(20%, 82.1%, 0%, 62.7%)
CIE-LABlab(19.07, 39.20, -32.91)
CIE-LCHlch(19.07, 51.18, 319.99°)
OKLaboklab(31.99% 0.0968 -0.0928)
OKLCHoklch(31.99% 0.134 316.2)
XYZxyz(5.2462, 2.7638, 11.0814)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C115F #245F11
analogous
#25115F #4C115F #5F114B
triadic
#4C115F #5F4C11 #115F4C
tetradic
#4C115F #5F2511 #245F11 #114B5F
square
#4C115F #5F2511 #245F11 #114B5F
split-complementary
#4C115F #4B5F11 #115F25
monochromatic
#15051A #22082B #4C115F #761A93 #9F24C7

Accessibility & contrast

On white

13.52
#4C115F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C115F
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C115F#FFFFFF#000000##FFFFFF
##4C115F1.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B61
Deuteranopia (green-blind)
#10305D
Tritanopia (blue-blind)
#4B2338
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4c115f;
/* rgb */ color: rgb(76, 17, 95);
/* oklch */ color: oklch(32.0% 0.134 316.2);
Tailwind
colors: {
  custom: {
    50: '#81578d',
    500: '#4c115f',
    950: '#000000',
  },
}
SCSS
$custom: #4c115f;
$custom-light: #81578d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c115f",
  "rgb": {
    "r": 76,
    "g": 17,
    "b": 95
  },
  "hsl": {
    "h": 285.385,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.31985,
    "c": 0.13409,
    "h": 316.2
  },
  "luminance": 0.02764
}

Semantic roles & 50–950 ramp

primary
#4C115F
secondary
#4C9834
accent
#EC3B66
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4C115F

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

Preview Lab → · Contrast checker → · Palette generator →

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