#4C166B#4C166B

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

Color values

HEX#4C166B
RGBrgb(76, 22, 107)
HSLhsl(278, 66%, 25%)
HSVhsv(278, 79%, 42%)
CMYKcmyk(29%, 79.4%, 0%, 58%)
CIE-LABlab(20.72, 39.93, -38.13)
CIE-LCHlch(20.72, 55.21, 316.32°)
OKLaboklab(33.45% 0.0896 -0.1081)
OKLCHoklch(33.45% 0.14 309.7)
XYZxyz(5.9207, 3.1720, 14.2074)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C166B #356B16
analogous
#22166B #4C166B #6B165F
triadic
#4C166B #6B4C16 #166B4C
tetradic
#4C166B #6B2216 #356B16 #165F6B
square
#4C166B #6B2216 #356B16 #165F6B
split-complementary
#4C166B #5F6B16 #166B22
monochromatic
#120519 #280C38 #4C166B #70209E #942BD1

Accessibility & contrast

On white

12.85
#4C166B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C166B
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C166B#FFFFFF#000000##FFFFFF
##4C166B1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306D
Deuteranopia (green-blind)
#003369
Tritanopia (blue-blind)
#472A40
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4c166b;
/* rgb */ color: rgb(76, 22, 107);
/* oklch */ color: oklch(33.4% 0.140 309.7);
Tailwind
colors: {
  custom: {
    50: '#825a96',
    500: '#4c166b',
    950: '#000000',
  },
}
SCSS
$custom: #4c166b;
$custom-light: #825a96;
$custom-dark: #000000;
JSON
{
  "hex": "#4c166b",
  "rgb": {
    "r": 76,
    "g": 22,
    "b": 107
  },
  "hsl": {
    "h": 278.118,
    "s": 65.891,
    "l": 25.294
  },
  "oklch": {
    "l": 0.33447,
    "c": 0.14046,
    "h": 309.7
  },
  "luminance": 0.03172
}

Semantic roles & 50–950 ramp

primary
#4C166B
secondary
#61A13B
accent
#E93F7D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4C166B

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

Preview Lab → · Contrast checker → · Palette generator →

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