#4C137A#4C137A

#4C137A is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.159 H 303.7°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#4C137A
RGBrgb(76, 19, 122)
HSLhsl(273, 73%, 28%)
HSVhsv(273, 84%, 48%)
CMYKcmyk(37.7%, 84.4%, 0%, 52.2%)
CIE-LABlab(21.61, 44.71, -46.36)
CIE-LCHlch(21.61, 64.40, 313.96°)
OKLaboklab(34.47% 0.0883 -0.1323)
OKLCHoklch(34.47% 0.159 303.7)
XYZxyz(6.7254, 3.4074, 18.7120)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C137A #417A13
analogous
#18137A #4C137A #7A1374
triadic
#4C137A #7A4C13 #137A4C
tetradic
#4C137A #7A1813 #417A13 #13747A
square
#4C137A #7A1813 #417A13 #13747A
split-complementary
#4C137A #747A13 #137A18
monochromatic
#10041A #2B0B45 #4C137A #6D1BAF #8D2ADE

Accessibility & contrast

On white

12.49
#4C137A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4C137A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C137A
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C137A#FFFFFF#000000##FFFFFF
##4C137A1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#003478
Tritanopia (blue-blind)
#433048
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4c137a;
/* rgb */ color: rgb(76, 19, 122);
/* oklch */ color: oklch(34.5% 0.159 303.7);
Tailwind
colors: {
  custom: {
    50: '#8359a1',
    500: '#4c137a',
    950: '#000000',
  },
}
SCSS
$custom: #4c137a;
$custom-light: #8359a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c137a",
  "rgb": {
    "r": 76,
    "g": 19,
    "b": 122
  },
  "hsl": {
    "h": 273.204,
    "s": 73.05,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34471,
    "c": 0.15903,
    "h": 303.7
  },
  "luminance": 0.03407
}

Semantic roles & 50–950 ramp

primary
#4C137A
secondary
#6EB039
accent
#F0388A
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C137A

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

Preview Lab → · Contrast checker → · Palette generator →

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