#4C177F#4C177F

#4C177F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.160 H 301.4°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#4C177F
RGBrgb(76, 23, 127)
HSLhsl(271, 69%, 29%)
HSVhsv(271, 82%, 50%)
CMYKcmyk(40.2%, 81.9%, 0%, 50.2%)
CIE-LABlab(22.59, 44.41, -47.93)
CIE-LCHlch(22.59, 65.34, 312.82°)
OKLaboklab(35.3% 0.0835 -0.1369)
OKLCHoklch(35.3% 0.16 301.4)
XYZxyz(7.1167, 3.6816, 20.4102)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C177F #4A7F17
analogous
#18177F #4C177F #7F177E
triadic
#4C177F #7F4C17 #177F4C
tetradic
#4C177F #7F1817 #4A7F17 #177E7F
square
#4C177F #7F1817 #4A7F17 #177E7F
split-complementary
#4C177F #7E7F17 #177F18
monochromatic
#10051A #2D0E4B #4C177F #6B20B3 #8A36DB

Accessibility & contrast

On white

12.09
#4C177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4C177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C177F
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C177F#FFFFFF#000000##FFFFFF
##4C177F1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c177f;
/* rgb */ color: rgb(76, 23, 127);
/* oklch */ color: oklch(35.3% 0.160 301.4);
Tailwind
colors: {
  custom: {
    50: '#845ba5',
    500: '#4c177f',
    950: '#000000',
  },
}
SCSS
$custom: #4c177f;
$custom-light: #845ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#4c177f",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 270.577,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35295,
    "c": 0.16039,
    "h": 301.4
  },
  "luminance": 0.03682
}

Semantic roles & 50–950 ramp

primary
#4C177F
secondary
#78B43E
accent
#EC3C92
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C177F

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

Preview Lab → · Contrast checker → · Palette generator →

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