#4C177E#4C177E

#4C177E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.159 H 301.7°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#4C177E
RGBrgb(76, 23, 126)
HSLhsl(271, 69%, 29%)
HSVhsv(271, 82%, 49%)
CMYKcmyk(39.7%, 81.7%, 0%, 50.6%)
CIE-LABlab(22.50, 44.16, -47.44)
CIE-LCHlch(22.50, 64.81, 312.95°)
OKLaboklab(35.2% 0.0838 -0.1355)
OKLCHoklch(35.2% 0.159 301.7)
XYZxyz(7.0519, 3.6556, 20.0687)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C177E #497E17
analogous
#19177E #4C177E #7E177D
triadic
#4C177E #7E4C17 #177E4C
tetradic
#4C177E #7E1917 #497E17 #177D7E
square
#4C177E #7E1917 #497E17 #177D7E
split-complementary
#4C177E #7D7E17 #177E19
monochromatic
#10051A #2D0E4A #4C177E #6B20B2 #8A35DA

Accessibility & contrast

On white

12.13
#4C177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C177E
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C177E#FFFFFF#000000##FFFFFF
##4C177E1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c177e;
/* rgb */ color: rgb(76, 23, 126);
/* oklch */ color: oklch(35.2% 0.159 301.7);
Tailwind
colors: {
  custom: {
    50: '#845ba4',
    500: '#4c177e',
    950: '#000000',
  },
}
SCSS
$custom: #4c177e;
$custom-light: #845ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c177e",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 270.874,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35203,
    "c": 0.15933,
    "h": 301.7
  },
  "luminance": 0.03656
}

Semantic roles & 50–950 ramp

primary
#4C177E
secondary
#77B33E
accent
#EC3C91
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C177E

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

Preview Lab → · Contrast checker → · Palette generator →

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