#4C147D#4C147D

#4C147D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.161 H 302.5°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#4C147D
RGBrgb(76, 20, 125)
HSLhsl(272, 72%, 28%)
HSVhsv(272, 84%, 49%)
CMYKcmyk(39.2%, 84%, 0%, 51%)
CIE-LABlab(22.01, 45.07, -47.61)
CIE-LCHlch(22.01, 65.56, 313.43°)
OKLaboklab(34.83% 0.0865 -0.136)
OKLCHoklch(34.83% 0.161 302.5)
XYZxyz(6.9314, 3.5175, 19.7118)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C147D #457D14
analogous
#17147D #4C147D #7D1479
triadic
#4C147D #7D4C14 #147D4C
tetradic
#4C147D #7D1714 #457D14 #14797D
square
#4C147D #7D1714 #457D14 #14797D
split-complementary
#4C147D #797D14 #147D17
monochromatic
#10041A #2C0C48 #4C147D #6C1CB2 #8C2EDE

Accessibility & contrast

On white

12.33
#4C147D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4C147D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C147D
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C147D#FFFFFF#000000##FFFFFF
##4C147D1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#413149
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4c147d;
/* rgb */ color: rgb(76, 20, 125);
/* oklch */ color: oklch(34.8% 0.161 302.5);
Tailwind
colors: {
  custom: {
    50: '#845aa4',
    500: '#4c147d',
    950: '#000000',
  },
}
SCSS
$custom: #4c147d;
$custom-light: #845aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c147d",
  "rgb": {
    "r": 76,
    "g": 20,
    "b": 125
  },
  "hsl": {
    "h": 272,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34833,
    "c": 0.16117,
    "h": 302.5
  },
  "luminance": 0.03517
}

Semantic roles & 50–950 ramp

primary
#4C147D
secondary
#72B23A
accent
#EF398E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C147D

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

Preview Lab → · Contrast checker → · Palette generator →

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