#4C135D#4C135D

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

Color values

HEX#4C135D
RGBrgb(76, 19, 93)
HSLhsl(286, 66%, 22%)
HSVhsv(286, 80%, 36%)
CMYKcmyk(18.3%, 79.6%, 0%, 63.5%)
CIE-LABlab(19.19, 37.98, -31.38)
CIE-LCHlch(19.19, 49.27, 320.43°)
OKLaboklab(32.02% 0.0951 -0.0883)
OKLCHoklch(32.02% 0.13 317.1)
XYZxyz(5.1889, 2.7928, 10.6195)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C135D #245D13
analogous
#27135D #4C135D #5D1349
triadic
#4C135D #5D4C13 #135D4C
tetradic
#4C135D #5D2713 #245D13 #13495D
square
#4C135D #5D2713 #245D13 #13495D
split-complementary
#4C135D #495D13 #135D27
monochromatic
#150519 #22092A #4C135D #761D90 #9F28C3

Accessibility & contrast

On white

13.47
#4C135D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#4C135D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C135D
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C135D#FFFFFF#000000##FFFFFF
##4C135D1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5F
Deuteranopia (green-blind)
#14305B
Tritanopia (blue-blind)
#4B2337
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4c135d;
/* rgb */ color: rgb(76, 19, 93);
/* oklch */ color: oklch(32.0% 0.130 317.1);
Tailwind
colors: {
  custom: {
    50: '#81588b',
    500: '#4c135d',
    950: '#000000',
  },
}
SCSS
$custom: #4c135d;
$custom-light: #81588b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c135d",
  "rgb": {
    "r": 76,
    "g": 19,
    "b": 93
  },
  "hsl": {
    "h": 286.216,
    "s": 66.071,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32023,
    "c": 0.12979,
    "h": 317.1
  },
  "luminance": 0.02793
}

Semantic roles & 50–950 ramp

primary
#4C135D
secondary
#4C9537
accent
#E93F66
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4C135D

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

Preview Lab → · Contrast checker → · Palette generator →

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