#4C115B#4C115B

#4C115B is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.7% C 0.130 H 318.4°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#4C115B
RGBrgb(76, 17, 91)
HSLhsl(288, 69%, 21%)
HSVhsv(288, 81%, 36%)
CMYKcmyk(16.5%, 81.3%, 0%, 64.3%)
CIE-LABlab(18.77, 38.33, -30.73)
CIE-LCHlch(18.77, 49.13, 321.28°)
OKLaboklab(31.67% 0.0974 -0.0864)
OKLCHoklch(31.67% 0.13 318.4)
XYZxyz(5.0690, 2.6930, 10.1483)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C115B #205B11
analogous
#27115B #4C115B #5B1145
triadic
#4C115B #5B4C11 #115B4C
tetradic
#4C115B #5B2711 #205B11 #11455B
square
#4C115B #5B2711 #205B11 #11455B
split-complementary
#4C115B #455B11 #115B27
monochromatic
#16051A #210727 #4C115B #771B8F #A224C2

Accessibility & contrast

On white

13.65
#4C115B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C115B
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C115B#FFFFFF#000000##FFFFFF
##4C115B1.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5D
Deuteranopia (green-blind)
#152F59
Tritanopia (blue-blind)
#4C2135
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4c115b;
/* rgb */ color: rgb(76, 17, 91);
/* oklch */ color: oklch(31.7% 0.130 318.4);
Tailwind
colors: {
  custom: {
    50: '#81578a',
    500: '#4c115b',
    950: '#000000',
  },
}
SCSS
$custom: #4c115b;
$custom-light: #81578a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c115b",
  "rgb": {
    "r": 76,
    "g": 17,
    "b": 91
  },
  "hsl": {
    "h": 287.838,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31675,
    "c": 0.13021,
    "h": 318.4
  },
  "luminance": 0.02693
}

Semantic roles & 50–950 ramp

primary
#4C115B
secondary
#479434
accent
#EB3C60
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4C115B

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

Preview Lab → · Contrast checker → · Palette generator →

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