#4C147B#4C147B

#4C147B is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.159 H 303.2°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#4C147B
RGBrgb(76, 20, 123)
HSLhsl(273, 72%, 28%)
HSVhsv(273, 84%, 48%)
CMYKcmyk(38.2%, 83.7%, 0%, 51.8%)
CIE-LABlab(21.82, 44.58, -46.64)
CIE-LCHlch(21.82, 64.52, 313.71°)
OKLaboklab(34.65% 0.0872 -0.1331)
OKLCHoklch(34.65% 0.159 303.2)
XYZxyz(6.8050, 3.4669, 19.0457)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C147B #437B14
analogous
#18147B #4C147B #7B1476
triadic
#4C147B #7B4C14 #147B4C
tetradic
#4C147B #7B1814 #437B14 #14767B
square
#4C147B #7B1814 #437B14 #14767B
split-complementary
#4C147B #767B14 #147B18
monochromatic
#10041A #2B0B46 #4C147B #6D1DB0 #8C2DDD

Accessibility & contrast

On white

12.40
#4C147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4C147B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C147B
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C147B#FFFFFF#000000##FFFFFF
##4C147B1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#423048
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4c147b;
/* rgb */ color: rgb(76, 20, 123);
/* oklch */ color: oklch(34.6% 0.159 303.2);
Tailwind
colors: {
  custom: {
    50: '#835aa2',
    500: '#4c147b',
    950: '#000000',
  },
}
SCSS
$custom: #4c147b;
$custom-light: #835aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c147b",
  "rgb": {
    "r": 76,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 272.621,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3465,
    "c": 0.15912,
    "h": 303.2
  },
  "luminance": 0.03467
}

Semantic roles & 50–950 ramp

primary
#4C147B
secondary
#70B13A
accent
#EF398C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C147B

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

Preview Lab → · Contrast checker → · Palette generator →

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