#4C147E#4C147E

#4C147E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.162 H 302.1°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#4C147E
RGBrgb(76, 20, 126)
HSLhsl(272, 73%, 29%)
HSVhsv(272, 84%, 49%)
CMYKcmyk(39.7%, 84.1%, 0%, 50.6%)
CIE-LABlab(22.10, 45.32, -48.10)
CIE-LCHlch(22.10, 66.08, 313.30°)
OKLaboklab(34.93% 0.0862 -0.1374)
OKLCHoklch(34.93% 0.162 302.1)
XYZxyz(6.9956, 3.5431, 20.0500)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C147E #467E14
analogous
#17147E #4C147E #7E147B
triadic
#4C147E #7E4C14 #147E4C
tetradic
#4C147E #7E1714 #467E14 #147B7E
square
#4C147E #7E1714 #467E14 #147B7E
split-complementary
#4C147E #7B7E14 #147E17
monochromatic
#10041A #2C0C49 #4C147E #6C1CB3 #8B2EDE

Accessibility & contrast

On white

12.29
#4C147E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C147E
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C147E#FFFFFF#000000##FFFFFF
##4C147E1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#41324A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4c147e;
/* rgb */ color: rgb(76, 20, 126);
/* oklch */ color: oklch(34.9% 0.162 302.1);
Tailwind
colors: {
  custom: {
    50: '#845aa4',
    500: '#4c147e',
    950: '#000000',
  },
}
SCSS
$custom: #4c147e;
$custom-light: #845aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c147e",
  "rgb": {
    "r": 76,
    "g": 20,
    "b": 126
  },
  "hsl": {
    "h": 271.698,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34926,
    "c": 0.16221,
    "h": 302.1
  },
  "luminance": 0.03543
}

Semantic roles & 50–950 ramp

primary
#4C147E
secondary
#73B33A
accent
#EF388F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C147E

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

Preview Lab → · Contrast checker → · Palette generator →

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