#4C156A#4C156A

#4C156A is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.141 H 310.2°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#4C156A
RGBrgb(76, 21, 106)
HSLhsl(279, 67%, 25%)
HSVhsv(279, 80%, 42%)
CMYKcmyk(28.3%, 80.2%, 0%, 58.4%)
CIE-LABlab(20.49, 40.11, -37.85)
CIE-LCHlch(20.49, 55.15, 316.66°)
OKLaboklab(33.26% 0.0908 -0.1073)
OKLCHoklch(33.26% 0.141 310.2)
XYZxyz(5.8497, 3.1136, 13.9257)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C156A #336A15
analogous
#22156A #4C156A #6A155D
triadic
#4C156A #6A4C15 #156A4C
tetradic
#4C156A #6A2215 #336A15 #155D6A
square
#4C156A #6A2215 #336A15 #155D6A
split-complementary
#4C156A #5D6A15 #156A22
monochromatic
#12051A #270B37 #4C156A #711F9D #9529D0

Accessibility & contrast

On white

12.94
#4C156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4C156A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C156A
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C156A#FFFFFF#000000##FFFFFF
##4C156A1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6C
Deuteranopia (green-blind)
#003268
Tritanopia (blue-blind)
#48293F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4c156a;
/* rgb */ color: rgb(76, 21, 106);
/* oklch */ color: oklch(33.3% 0.141 310.2);
Tailwind
colors: {
  custom: {
    50: '#825995',
    500: '#4c156a',
    950: '#000000',
  },
}
SCSS
$custom: #4c156a;
$custom-light: #825995;
$custom-dark: #000000;
JSON
{
  "hex": "#4c156a",
  "rgb": {
    "r": 76,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 278.824,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.33262,
    "c": 0.14058,
    "h": 310.2
  },
  "luminance": 0.03113
}

Semantic roles & 50–950 ramp

primary
#4C156A
secondary
#5EA13A
accent
#EA3E7B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4C156A

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

Preview Lab → · Contrast checker → · Palette generator →

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