#4C176F#4C176F

#4C176F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.143 H 307.7°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#4C176F
RGBrgb(76, 23, 111)
HSLhsl(276, 66%, 26%)
HSVhsv(276, 79%, 44%)
CMYKcmyk(31.5%, 79.3%, 0%, 56.5%)
CIE-LABlab(21.20, 40.46, -39.95)
CIE-LCHlch(21.20, 56.86, 315.36°)
OKLaboklab(33.89% 0.0878 -0.1135)
OKLCHoklch(33.89% 0.143 307.7)
XYZxyz(6.1555, 3.2971, 15.3480)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C176F #3A6F17
analogous
#20176F #4C176F #6F1766
triadic
#4C176F #6F4C17 #176F4C
tetradic
#4C176F #6F2017 #3A6F17 #17666F
square
#4C176F #6F2017 #3A6F17 #17666F
split-complementary
#4C176F #666F17 #176F20
monochromatic
#110519 #290C3C #4C176F #6F22A2 #912DD3

Accessibility & contrast

On white

12.66
#4C176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4C176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C176F
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C176F#FFFFFF#000000##FFFFFF
##4C176F1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#00336D
Tritanopia (blue-blind)
#462D42
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4c176f;
/* rgb */ color: rgb(76, 23, 111);
/* oklch */ color: oklch(33.9% 0.143 307.7);
Tailwind
colors: {
  custom: {
    50: '#825a99',
    500: '#4c176f',
    950: '#000000',
  },
}
SCSS
$custom: #4c176f;
$custom-light: #825a99;
$custom-dark: #000000;
JSON
{
  "hex": "#4c176f",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 276.136,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.33886,
    "c": 0.14348,
    "h": 307.7
  },
  "luminance": 0.03297
}

Semantic roles & 50–950 ramp

primary
#4C176F
secondary
#66A53D
accent
#E93F83
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4C176F

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

Preview Lab → · Contrast checker → · Palette generator →

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