#4C157A#4C157A

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

Color values

HEX#4C157A
RGBrgb(76, 21, 122)
HSLhsl(273, 71%, 28%)
HSVhsv(273, 83%, 48%)
CMYKcmyk(37.7%, 82.8%, 0%, 52.2%)
CIE-LABlab(21.86, 43.96, -45.93)
CIE-LCHlch(21.86, 63.58, 313.74°)
OKLaboklab(34.65% 0.0867 -0.1311)
OKLCHoklch(34.65% 0.157 303.5)
XYZxyz(6.7607, 3.4780, 18.7237)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C157A #437A15
analogous
#19157A #4C157A #7A1575
triadic
#4C157A #7A4C15 #157A4C
tetradic
#4C157A #7A1915 #437A15 #15757A
square
#4C157A #7A1915 #437A15 #15757A
split-complementary
#4C157A #757A15 #157A19
monochromatic
#10041A #2B0C46 #4C157A #6D1EAE #8C2EDB

Accessibility & contrast

On white

12.38
#4C157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C157A
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C157A#FFFFFF#000000##FFFFFF
##4C157A1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.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: #4c157a;
/* rgb */ color: rgb(76, 21, 122);
/* oklch */ color: oklch(34.6% 0.157 303.5);
Tailwind
colors: {
  custom: {
    50: '#835aa1',
    500: '#4c157a',
    950: '#000000',
  },
}
SCSS
$custom: #4c157a;
$custom-light: #835aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c157a",
  "rgb": {
    "r": 76,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 272.673,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3465,
    "c": 0.15713,
    "h": 303.5
  },
  "luminance": 0.03478
}

Semantic roles & 50–950 ramp

primary
#4C157A
secondary
#70AF3B
accent
#ED3A8C
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C157A

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

Preview Lab → · Contrast checker → · Palette generator →

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