#4C176B#4C176B

#4C176B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.139 H 309.5°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#4C176B
RGBrgb(76, 23, 107)
HSLhsl(278, 65%, 25%)
HSVhsv(278, 79%, 42%)
CMYKcmyk(29%, 78.5%, 0%, 58%)
CIE-LABlab(20.87, 39.50, -37.89)
CIE-LCHlch(20.87, 54.74, 316.19°)
OKLaboklab(33.55% 0.0886 -0.1074)
OKLCHoklch(33.55% 0.139 309.5)
XYZxyz(5.9402, 3.2109, 14.2139)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C176B #366B17
analogous
#22176B #4C176B #6B1760
triadic
#4C176B #6B4C17 #176B4C
tetradic
#4C176B #6B2217 #366B17 #17606B
square
#4C176B #6B2217 #366B17 #17606B
split-complementary
#4C176B #606B17 #176B22
monochromatic
#120519 #280C39 #4C176B #70229D #942DD0

Accessibility & contrast

On white

12.79
#4C176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#4C176B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C176B
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C176B#FFFFFF#000000##FFFFFF
##4C176B1.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c176b;
/* rgb */ color: rgb(76, 23, 107);
/* oklch */ color: oklch(33.6% 0.139 309.5);
Tailwind
colors: {
  custom: {
    50: '#825a96',
    500: '#4c176b',
    950: '#000000',
  },
}
SCSS
$custom: #4c176b;
$custom-light: #825a96;
$custom-dark: #000000;
JSON
{
  "hex": "#4c176b",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 277.857,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.33553,
    "c": 0.13926,
    "h": 309.5
  },
  "luminance": 0.03211
}

Semantic roles & 50–950 ramp

primary
#4C176B
secondary
#62A13D
accent
#E8407E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4C176B

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

Preview Lab → · Contrast checker → · Palette generator →

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