#4C135C#4C135C

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

Color values

HEX#4C135C
RGBrgb(76, 19, 92)
HSLhsl(287, 66%, 22%)
HSVhsv(287, 79%, 36%)
CMYKcmyk(17.4%, 79.3%, 0%, 63.9%)
CIE-LABlab(19.12, 37.76, -30.84)
CIE-LCHlch(19.12, 48.75, 320.76°)
OKLaboklab(31.95% 0.0953 -0.0867)
OKLCHoklch(31.95% 0.129 317.7)
XYZxyz(5.1449, 2.7752, 10.3878)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C135C #235C13
analogous
#28135C #4C135C #5C1348
triadic
#4C135C #5C4C13 #135C4C
tetradic
#4C135C #5C2813 #235C13 #13485C
square
#4C135C #5C2813 #235C13 #13485C
split-complementary
#4C135C #485C13 #135C28
monochromatic
#150519 #220929 #4C135C #761D8F #A028C1

Accessibility & contrast

On white

13.50
#4C135C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C135C
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C135C#FFFFFF#000000##FFFFFF
##4C135C1.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5E
Deuteranopia (green-blind)
#15305A
Tritanopia (blue-blind)
#4B2236
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4c135c;
/* rgb */ color: rgb(76, 19, 92);
/* oklch */ color: oklch(31.9% 0.129 317.7);
Tailwind
colors: {
  custom: {
    50: '#81588b',
    500: '#4c135c',
    950: '#000000',
  },
}
SCSS
$custom: #4c135c;
$custom-light: #81588b;
$custom-dark: #000000;
JSON
{
  "hex": "#4c135c",
  "rgb": {
    "r": 76,
    "g": 19,
    "b": 92
  },
  "hsl": {
    "h": 286.849,
    "s": 65.766,
    "l": 21.765
  },
  "oklch": {
    "l": 0.31947,
    "c": 0.12879,
    "h": 317.7
  },
  "luminance": 0.02775
}

Semantic roles & 50–950 ramp

primary
#4C135C
secondary
#4B9437
accent
#E93F64
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4C135C

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

Preview Lab → · Contrast checker → · Palette generator →

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