#4C145B#4C145B

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

Color values

HEX#4C145B
RGBrgb(76, 20, 91)
HSLhsl(287, 64%, 22%)
HSVhsv(287, 78%, 36%)
CMYKcmyk(16.5%, 78%, 0%, 64.3%)
CIE-LABlab(19.19, 37.13, -30.05)
CIE-LCHlch(19.19, 47.76, 321.01°)
OKLaboklab(31.98% 0.0943 -0.0844)
OKLCHoklch(31.98% 0.127 318.2)
XYZxyz(5.1187, 2.7924, 10.1649)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C145B #235B14
analogous
#29145B #4C145B #5B1447
triadic
#4C145B #5B4C14 #145B4C
tetradic
#4C145B #5B2914 #235B14 #14475B
square
#4C145B #5B2914 #235B14 #14475B
split-complementary
#4C145B #475B14 #145B29
monochromatic
#150619 #220929 #4C145B #761F8D #A02ABF

Accessibility & contrast

On white

13.48
#4C145B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C145B
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C145B#FFFFFF#000000##FFFFFF
##4C145B1.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5D
Deuteranopia (green-blind)
#173059
Tritanopia (blue-blind)
#4C2236
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4c145b;
/* rgb */ color: rgb(76, 20, 91);
/* oklch */ color: oklch(32.0% 0.127 318.2);
Tailwind
colors: {
  custom: {
    50: '#81588a',
    500: '#4c145b',
    950: '#000000',
  },
}
SCSS
$custom: #4c145b;
$custom-light: #81588a;
$custom-dark: #000000;
JSON
{
  "hex": "#4c145b",
  "rgb": {
    "r": 76,
    "g": 20,
    "b": 91
  },
  "hsl": {
    "h": 287.324,
    "s": 63.964,
    "l": 21.765
  },
  "oklch": {
    "l": 0.31975,
    "c": 0.12655,
    "h": 318.2
  },
  "luminance": 0.02792
}

Semantic roles & 50–950 ramp

primary
#4C145B
secondary
#4B9338
accent
#E74164
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4C145B

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

Preview Lab → · Contrast checker → · Palette generator →

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