#4C147F#4C147F

#4C147F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.163 H 301.7°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#4C147F
RGBrgb(76, 20, 127)
HSLhsl(271, 73%, 29%)
HSVhsv(271, 84%, 50%)
CMYKcmyk(40.2%, 84.3%, 0%, 50.2%)
CIE-LABlab(22.19, 45.56, -48.58)
CIE-LCHlch(22.19, 66.60, 313.17°)
OKLaboklab(35.02% 0.0859 -0.1388)
OKLCHoklch(35.02% 0.163 301.7)
XYZxyz(7.0605, 3.5691, 20.3915)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C147F #477F14
analogous
#17147F #4C147F #7F147D
triadic
#4C147F #7F4C14 #147F4C
tetradic
#4C147F #7F1714 #477F14 #147D7F
square
#4C147F #7F1714 #477F14 #147D7F
split-complementary
#4C147F #7D7F14 #147F17
monochromatic
#10041A #2C0C4A #4C147F #6C1CB4 #8B2FDE

Accessibility & contrast

On white

12.25
#4C147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4C147F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C147F
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C147F#FFFFFF#000000##FFFFFF
##4C147F1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#00357D
Tritanopia (blue-blind)
#41324B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4c147f;
/* rgb */ color: rgb(76, 20, 127);
/* oklch */ color: oklch(35.0% 0.163 301.7);
Tailwind
colors: {
  custom: {
    50: '#845aa5',
    500: '#4c147f',
    950: '#000000',
  },
}
SCSS
$custom: #4c147f;
$custom-light: #845aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#4c147f",
  "rgb": {
    "r": 76,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 271.402,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35019,
    "c": 0.16323,
    "h": 301.7
  },
  "luminance": 0.03569
}

Semantic roles & 50–950 ramp

primary
#4C147F
secondary
#75B43B
accent
#EF3890
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C147F

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

Preview Lab → · Contrast checker → · Palette generator →

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