#4C135F#4C135F

#4C135F is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.2% C 0.132 H 316.0°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#4C135F
RGBrgb(76, 19, 95)
HSLhsl(285, 67%, 22%)
HSVhsv(285, 80%, 37%)
CMYKcmyk(20%, 80%, 0%, 62.7%)
CIE-LABlab(19.34, 38.42, -32.47)
CIE-LCHlch(19.34, 50.30, 319.80°)
OKLaboklab(32.18% 0.0948 -0.0915)
OKLCHoklch(32.18% 0.132 316)
XYZxyz(5.2786, 2.8287, 11.0922)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C135F #265F13
analogous
#26135F #4C135F #5F134C
triadic
#4C135F #5F4C13 #135F4C
tetradic
#4C135F #5F2613 #265F13 #134C5F
square
#4C135F #5F2613 #265F13 #134C5F
split-complementary
#4C135F #4C5F13 #135F26
monochromatic
#14051A #23092C #4C135F #751D92 #9E27C5

Accessibility & contrast

On white

13.41
#4C135F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#4C135F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C135F
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C135F#FFFFFF#000000##FFFFFF
##4C135F1.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C61
Deuteranopia (green-blind)
#12305D
Tritanopia (blue-blind)
#4B2438
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4c135f;
/* rgb */ color: rgb(76, 19, 95);
/* oklch */ color: oklch(32.2% 0.132 316.0);
Tailwind
colors: {
  custom: {
    50: '#81588d',
    500: '#4c135f',
    950: '#000000',
  },
}
SCSS
$custom: #4c135f;
$custom-light: #81588d;
$custom-dark: #000000;
JSON
{
  "hex": "#4c135f",
  "rgb": {
    "r": 76,
    "g": 19,
    "b": 95
  },
  "hsl": {
    "h": 285,
    "s": 66.667,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32177,
    "c": 0.13178,
    "h": 316
  },
  "luminance": 0.02828
}

Semantic roles & 50–950 ramp

primary
#4C135F
secondary
#4F9737
accent
#EA3E69
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4C135F

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

Preview Lab → · Contrast checker → · Palette generator →

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