#4C135A#4C135A

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

Color values

HEX#4C135A
RGBrgb(76, 19, 90)
HSLhsl(288, 65%, 21%)
HSVhsv(288, 79%, 35%)
CMYKcmyk(15.6%, 78.9%, 0%, 64.7%)
CIE-LABlab(18.97, 37.33, -29.73)
CIE-LCHlch(18.97, 47.72, 321.46°)
OKLaboklab(31.8% 0.0955 -0.0835)
OKLCHoklch(31.8% 0.127 318.8)
XYZxyz(5.0586, 2.7407, 9.9334)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C135A #215A13
analogous
#29135A #4C135A #5A1345
triadic
#4C135A #5A4C13 #135A4C
tetradic
#4C135A #5A2913 #215A13 #13455A
square
#4C135A #5A2913 #215A13 #13455A
split-complementary
#4C135A #455A13 #135A29
monochromatic
#150519 #210827 #4C135A #771E8D #A128BF

Accessibility & contrast

On white

13.57
#4C135A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C135A
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C135A#FFFFFF#000000##FFFFFF
##4C135A1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5C
Deuteranopia (green-blind)
#173058
Tritanopia (blue-blind)
#4C2135
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4c135a;
/* rgb */ color: rgb(76, 19, 90);
/* oklch */ color: oklch(31.8% 0.127 318.8);
Tailwind
colors: {
  custom: {
    50: '#815789',
    500: '#4c135a',
    950: '#000000',
  },
}
SCSS
$custom: #4c135a;
$custom-light: #815789;
$custom-dark: #000000;
JSON
{
  "hex": "#4c135a",
  "rgb": {
    "r": 76,
    "g": 19,
    "b": 90
  },
  "hsl": {
    "h": 288.169,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.31797,
    "c": 0.12682,
    "h": 318.8
  },
  "luminance": 0.0274
}

Semantic roles & 50–950 ramp

primary
#4C135A
secondary
#499237
accent
#E84061
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4C135A

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

Preview Lab → · Contrast checker → · Palette generator →

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