#4C2198#4C2198

#4C2198 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.178 H 292.4°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#4C2198
RGBrgb(76, 33, 152)
HSLhsl(262, 64%, 36%)
HSVhsv(262, 78%, 60%)
CMYKcmyk(50%, 78.3%, 0%, 40.4%)
CIE-LABlab(26.42, 46.64, -57.23)
CIE-LCHlch(26.42, 73.83, 309.18°)
OKLaboklab(38.68% 0.0678 -0.1643)
OKLCHoklch(38.68% 0.178 292.4)
XYZxyz(9.1903, 4.8909, 30.1595)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2198 #6D9821
analogous
#213298 #4C2198 #882198
triadic
#4C2198 #984C21 #21984C
tetradic
#4C2198 #982132 #6D9821 #219888
square
#4C2198 #982132 #6D9821 #219888
split-complementary
#4C2198 #988821 #329821
monochromatic
#1A0B33 #331666 #4C2198 #652CCA #8859DB

Accessibility & contrast

On white

10.62
#4C2198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4C2198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2198
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2198#FFFFFF#000000##FFFFFF
##4C21981.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409B
Deuteranopia (green-blind)
#003C96
Tritanopia (blue-blind)
#33425C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4c2198;
/* rgb */ color: rgb(76, 33, 152);
/* oklch */ color: oklch(38.7% 0.178 292.4);
Tailwind
colors: {
  custom: {
    50: '#8662b7',
    500: '#4c2198',
    950: '#000000',
  },
}
SCSS
$custom: #4c2198;
$custom-light: #8662b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2198",
  "rgb": {
    "r": 76,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 261.681,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38681,
    "c": 0.17773,
    "h": 292.4
  },
  "luminance": 0.04891
}

Semantic roles & 50–950 ramp

primary
#4C2198
secondary
#99BF56
accent
#E740AB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4C2198

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

Preview Lab → · Contrast checker → · Palette generator →

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