#4C177B#4C177B

#4C177B is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.156 H 302.8°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#4C177B
RGBrgb(76, 23, 123)
HSLhsl(272, 68%, 29%)
HSVhsv(272, 81%, 48%)
CMYKcmyk(38.2%, 81.3%, 0%, 51.8%)
CIE-LABlab(22.23, 43.41, -45.98)
CIE-LCHlch(22.23, 63.23, 313.35°)
OKLaboklab(34.93% 0.0847 -0.1312)
OKLCHoklch(34.93% 0.156 302.8)
XYZxyz(6.8612, 3.5793, 19.0645)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C177B #467B17
analogous
#1A177B #4C177B #7B1778
triadic
#4C177B #7B4C17 #177B4C
tetradic
#4C177B #7B1A17 #467B17 #17787B
square
#4C177B #7B1A17 #467B17 #17787B
split-complementary
#4C177B #787B17 #177B1A
monochromatic
#10051A #2C0D47 #4C177B #6C21AF #8B33D9

Accessibility & contrast

On white

12.24
#4C177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4C177B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C177B
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C177B#FFFFFF#000000##FFFFFF
##4C177B1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#003579
Tritanopia (blue-blind)
#423249
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4c177b;
/* rgb */ color: rgb(76, 23, 123);
/* oklch */ color: oklch(34.9% 0.156 302.8);
Tailwind
colors: {
  custom: {
    50: '#835ba2',
    500: '#4c177b',
    950: '#000000',
  },
}
SCSS
$custom: #4c177b;
$custom-light: #835ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c177b",
  "rgb": {
    "r": 76,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 271.8,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34932,
    "c": 0.15616,
    "h": 302.8
  },
  "luminance": 0.03579
}

Semantic roles & 50–950 ramp

primary
#4C177B
secondary
#73B03E
accent
#EB3C8F
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C177B

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

Preview Lab → · Contrast checker → · Palette generator →

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