#4C2178#4C2178

#4C2178 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.141 H 302.4°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#4C2178
RGBrgb(76, 33, 120)
HSLhsl(270, 57%, 30%)
HSVhsv(270, 73%, 47%)
CMYKcmyk(36.7%, 72.5%, 0%, 52.9%)
CIE-LABlab(23.61, 38.00, -41.82)
CIE-LCHlch(23.61, 56.51, 312.26°)
OKLaboklab(35.82% 0.0754 -0.1191)
OKLCHoklch(35.82% 0.141 302.4)
XYZxyz(6.9137, 3.9803, 18.1697)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2178 #4D7821
analogous
#212278 #4C2178 #772178
triadic
#4C2178 #784C21 #21784C
tetradic
#4C2178 #782122 #4D7821 #217877
square
#4C2178 #782122 #4D7821 #217877
split-complementary
#4C2178 #787721 #227821
monochromatic
#0F0718 #2E1448 #4C2178 #6A2EA8 #8947CC

Accessibility & contrast

On white

11.69
#4C2178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4C2178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2178
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2178#FFFFFF#000000##FFFFFF
##4C21781.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#003876
Tritanopia (blue-blind)
#43354A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4c2178;
/* rgb */ color: rgb(76, 33, 120);
/* oklch */ color: oklch(35.8% 0.141 302.4);
Tailwind
colors: {
  custom: {
    50: '#8260a0',
    500: '#4c2178',
    950: '#000000',
  },
}
SCSS
$custom: #4c2178;
$custom-light: #8260a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2178",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 269.655,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.35824,
    "c": 0.14094,
    "h": 302.4
  },
  "luminance": 0.0398
}

Semantic roles & 50–950 ramp

primary
#4C2178
secondary
#7BAB4A
accent
#E04895
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4C2178

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

Preview Lab → · Contrast checker → · Palette generator →

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