#4C135E#4C135E

#4C135E is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.1% C 0.131 H 316.6°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#4C135E
RGBrgb(76, 19, 94)
HSLhsl(286, 66%, 22%)
HSVhsv(286, 80%, 37%)
CMYKcmyk(19.1%, 79.8%, 0%, 63.1%)
CIE-LABlab(19.27, 38.20, -31.93)
CIE-LCHlch(19.27, 49.78, 320.11°)
OKLaboklab(32.1% 0.095 -0.0899)
OKLCHoklch(32.1% 0.131 316.6)
XYZxyz(5.2334, 2.8106, 10.8543)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C135E #255E13
analogous
#27135E #4C135E #5E134B
triadic
#4C135E #5E4C13 #135E4C
tetradic
#4C135E #5E2713 #255E13 #134B5E
square
#4C135E #5E2713 #255E13 #134B5E
split-complementary
#4C135E #4B5E13 #135E27
monochromatic
#150519 #23092B #4C135E #751D91 #9E28C4

Accessibility & contrast

On white

13.44
#4C135E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C135E
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C135E#FFFFFF#000000##FFFFFF
##4C135E1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B60
Deuteranopia (green-blind)
#13305C
Tritanopia (blue-blind)
#4B2337
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4c135e;
/* rgb */ color: rgb(76, 19, 94);
/* oklch */ color: oklch(32.1% 0.131 316.6);
Tailwind
colors: {
  custom: {
    50: '#81588c',
    500: '#4c135e',
    950: '#000000',
  },
}
SCSS
$custom: #4c135e;
$custom-light: #81588c;
$custom-dark: #000000;
JSON
{
  "hex": "#4c135e",
  "rgb": {
    "r": 76,
    "g": 19,
    "b": 94
  },
  "hsl": {
    "h": 285.6,
    "s": 66.372,
    "l": 22.157
  },
  "oklch": {
    "l": 0.321,
    "c": 0.13077,
    "h": 316.6
  },
  "luminance": 0.0281
}

Semantic roles & 50–950 ramp

primary
#4C135E
secondary
#4E9637
accent
#E93F67
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4C135E

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

Preview Lab → · Contrast checker → · Palette generator →

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