#4C156C#4C156C

#4C156C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.143 H 309.3°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#4C156C
RGBrgb(76, 21, 108)
HSLhsl(278, 67%, 25%)
HSVhsv(278, 81%, 42%)
CMYKcmyk(29.6%, 80.6%, 0%, 57.6%)
CIE-LABlab(20.66, 40.58, -38.88)
CIE-LCHlch(20.66, 56.20, 316.22°)
OKLaboklab(33.43% 0.0904 -0.1103)
OKLCHoklch(33.43% 0.143 309.3)
XYZxyz(5.9549, 3.1557, 14.4799)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C156C #356C15
analogous
#20156C #4C156C #6C1560
triadic
#4C156C #6C4C15 #156C4C
tetradic
#4C156C #6C2015 #356C15 #15606C
square
#4C156C #6C2015 #356C15 #15606C
split-complementary
#4C156C #606C15 #156C20
monochromatic
#12051A #280B39 #4C156C #701F9F #9429D2

Accessibility & contrast

On white

12.87
#4C156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#4C156C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C156C
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C156C#FFFFFF#000000##FFFFFF
##4C156C1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306E
Deuteranopia (green-blind)
#00326A
Tritanopia (blue-blind)
#472A40
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4c156c;
/* rgb */ color: rgb(76, 21, 108);
/* oklch */ color: oklch(33.4% 0.143 309.3);
Tailwind
colors: {
  custom: {
    50: '#825997',
    500: '#4c156c',
    950: '#000000',
  },
}
SCSS
$custom: #4c156c;
$custom-light: #825997;
$custom-dark: #000000;
JSON
{
  "hex": "#4c156c",
  "rgb": {
    "r": 76,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 277.931,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.33428,
    "c": 0.14264,
    "h": 309.3
  },
  "luminance": 0.03156
}

Semantic roles & 50–950 ramp

primary
#4C156C
secondary
#61A33A
accent
#EA3D7D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4C156C

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

Preview Lab → · Contrast checker → · Palette generator →

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