#4C16B4#4C16B4

#4C16B4 is a dark, highly saturated violet. Relative luminance 0.054; OKLCH L 40.5% C 0.216 H 287.3°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#4C16B4
RGBrgb(76, 22, 180)
HSLhsl(261, 78%, 40%)
HSVhsv(261, 88%, 71%)
CMYKcmyk(57.8%, 87.8%, 0%, 29.4%)
CIE-LABlab(27.86, 58.28, -71.80)
CIE-LCHlch(27.86, 92.48, 309.06°)
OKLaboklab(40.53% 0.0642 -0.2067)
OKLCHoklch(40.53% 0.217 287.3)
XYZxyz(11.5032, 5.4050, 43.6083)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C16B4 #7EB416
analogous
#162FB4 #4C16B4 #9B16B4
triadic
#4C16B4 #B44C16 #16B44C
tetradic
#4C16B4 #B4162F #7EB416 #16B49B
square
#4C16B4 #B4162F #7EB416 #16B49B
split-complementary
#4C16B4 #B49B16 #2FB416
monochromatic
#1E0947 #350F7D #4C16B4 #6523E4 #8B5AEB

Accessibility & contrast

On white

10.09
#4C16B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4C16B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C16B4
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C16B4#FFFFFF#000000##FFFFFF
##4C16B41.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B8
Deuteranopia (green-blind)
#003DB1
Tritanopia (blue-blind)
#174A6A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4c16b4;
/* rgb */ color: rgb(76, 22, 180);
/* oklch */ color: oklch(40.5% 0.216 287.3);
Tailwind
colors: {
  custom: {
    50: '#8b5fcc',
    500: '#4c16b4',
    950: '#000000',
  },
}
SCSS
$custom: #4c16b4;
$custom-light: #8b5fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c16b4",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 180
  },
  "hsl": {
    "h": 260.506,
    "s": 78.218,
    "l": 39.608
  },
  "oklch": {
    "l": 0.4053,
    "c": 0.2165,
    "h": 287.3
  },
  "luminance": 0.05406
}

Semantic roles & 50–950 ramp

primary
#4C16B4
secondary
#A6CE58
accent
#F533B3
background
#F9F5FC
surface
#F2EAF9
border
#CCC6D2
text
#0D0514
muted
#7E7982

Preview Lab

Preview with #4C16B4

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

Preview Lab → · Contrast checker → · Palette generator →

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