#4C177D#4C177D

#4C177D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.158 H 302.1°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#4C177D
RGBrgb(76, 23, 125)
HSLhsl(271, 69%, 29%)
HSVhsv(271, 82%, 49%)
CMYKcmyk(39.2%, 81.6%, 0%, 51%)
CIE-LABlab(22.41, 43.91, -46.96)
CIE-LCHlch(22.41, 64.29, 313.08°)
OKLaboklab(35.11% 0.0841 -0.1341)
OKLCHoklch(35.11% 0.158 302.1)
XYZxyz(6.9877, 3.6299, 19.7306)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C177D #487D17
analogous
#19177D #4C177D #7D177B
triadic
#4C177D #7D4C17 #177D4C
tetradic
#4C177D #7D1917 #487D17 #177B7D
square
#4C177D #7D1917 #487D17 #177B7D
split-complementary
#4C177D #7B7D17 #177D19
monochromatic
#10051A #2D0D49 #4C177D #6B21B1 #8A35DA

Accessibility & contrast

On white

12.17
#4C177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4C177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C177D
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C177D#FFFFFF#000000##FFFFFF
##4C177D1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00357B
Tritanopia (blue-blind)
#41334A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4c177d;
/* rgb */ color: rgb(76, 23, 125);
/* oklch */ color: oklch(35.1% 0.158 302.1);
Tailwind
colors: {
  custom: {
    50: '#835ba3',
    500: '#4c177d',
    950: '#000000',
  },
}
SCSS
$custom: #4c177d;
$custom-light: #835ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c177d",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 271.176,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35112,
    "c": 0.15828,
    "h": 302.1
  },
  "luminance": 0.0363
}

Semantic roles & 50–950 ramp

primary
#4C177D
secondary
#76B23E
accent
#EC3C90
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C177D

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

Preview Lab → · Contrast checker → · Palette generator →

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