#4C2176#4C2176

#4C2176 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.139 H 303.1°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#4C2176
RGBrgb(76, 33, 118)
HSLhsl(270, 56%, 30%)
HSVhsv(270, 72%, 46%)
CMYKcmyk(35.6%, 72%, 0%, 53.7%)
CIE-LABlab(23.45, 37.48, -40.81)
CIE-LCHlch(23.45, 55.40, 312.56°)
OKLaboklab(35.66% 0.0757 -0.1161)
OKLCHoklch(35.66% 0.139 303.1)
XYZxyz(6.7936, 3.9322, 17.5371)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2176 #4B7621
analogous
#222176 #4C2176 #762176
triadic
#4C2176 #764C21 #21764C
tetradic
#4C2176 #762221 #4B7621 #217676
square
#4C2176 #762221 #4B7621 #217676
split-complementary
#4C2176 #767621 #217622
monochromatic
#0F0718 #2D1446 #4C2176 #6B2EA6 #8946CB

Accessibility & contrast

On white

11.76
#4C2176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4C2176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2176
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2176#FFFFFF#000000##FFFFFF
##4C21761.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003779
Deuteranopia (green-blind)
#003874
Tritanopia (blue-blind)
#443549
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4c2176;
/* rgb */ color: rgb(76, 33, 118);
/* oklch */ color: oklch(35.7% 0.139 303.1);
Tailwind
colors: {
  custom: {
    50: '#82609e',
    500: '#4c2176',
    950: '#000000',
  },
}
SCSS
$custom: #4c2176;
$custom-light: #82609e;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2176",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 118
  },
  "hsl": {
    "h": 270.353,
    "s": 56.291,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3566,
    "c": 0.1386,
    "h": 303.1
  },
  "luminance": 0.03932
}

Semantic roles & 50–950 ramp

primary
#4C2176
secondary
#79A94A
accent
#E04893
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4C2176

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

Preview Lab → · Contrast checker → · Palette generator →

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