#4C135B#4C135B

#4C135B is a dark, vivid purple. Relative luminance 0.028; OKLCH L 31.9% C 0.128 H 318.3°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#4C135B
RGBrgb(76, 19, 91)
HSLhsl(288, 65%, 22%)
HSVhsv(288, 79%, 36%)
CMYKcmyk(16.5%, 79.1%, 0%, 64.3%)
CIE-LABlab(19.05, 37.54, -30.29)
CIE-LCHlch(19.05, 48.24, 321.11°)
OKLaboklab(31.87% 0.0954 -0.0851)
OKLCHoklch(31.87% 0.128 318.3)
XYZxyz(5.1014, 2.7578, 10.1591)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C135B #225B13
analogous
#28135B #4C135B #5B1346
triadic
#4C135B #5B4C13 #135B4C
tetradic
#4C135B #5B2813 #225B13 #13465B
square
#4C135B #5B2813 #225B13 #13465B
split-complementary
#4C135B #465B13 #135B28
monochromatic
#150519 #220828 #4C135B #761E8E #A128C0

Accessibility & contrast

On white

13.53
#4C135B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C135B
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C135B#FFFFFF#000000##FFFFFF
##4C135B1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5D
Deuteranopia (green-blind)
#173059
Tritanopia (blue-blind)
#4C2236
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4c135b;
/* rgb */ color: rgb(76, 19, 91);
/* oklch */ color: oklch(31.9% 0.128 318.3);
Tailwind
colors: {
  custom: {
    50: '#81578a',
    500: '#4c135b',
    950: '#000000',
  },
}
SCSS
$custom: #4c135b;
$custom-light: #81578a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c135b",
  "rgb": {
    "r": 76,
    "g": 19,
    "b": 91
  },
  "hsl": {
    "h": 287.5,
    "s": 65.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.31871,
    "c": 0.1278,
    "h": 318.3
  },
  "luminance": 0.02758
}

Semantic roles & 50–950 ramp

primary
#4C135B
secondary
#4A9337
accent
#E83F63
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4C135B

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

Preview Lab → · Contrast checker → · Palette generator →

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