#4C2299#4C2299

#4C2299 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.178 H 292.0°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#4C2299
RGBrgb(76, 34, 153)
HSLhsl(261, 64%, 37%)
HSVhsv(261, 78%, 60%)
CMYKcmyk(50.3%, 77.8%, 0%, 40%)
CIE-LABlab(26.68, 46.45, -57.42)
CIE-LCHlch(26.68, 73.86, 308.97°)
OKLaboklab(38.89% 0.0667 -0.1649)
OKLCHoklch(38.89% 0.178 292)
XYZxyz(9.3007, 4.9801, 30.6020)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2299 #6F9922
analogous
#223499 #4C2299 #882299
triadic
#4C2299 #994C22 #22994C
tetradic
#4C2299 #992234 #6F9922 #229988
square
#4C2299 #992234 #6F9922 #229988
split-complementary
#4C2299 #998822 #349922
monochromatic
#1A0C35 #331767 #4C2299 #652DCB #885BDB

Accessibility & contrast

On white

10.52
#4C2299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#4C2299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2299
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2299#FFFFFF#000000##FFFFFF
##4C22991.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419C
Deuteranopia (green-blind)
#003D97
Tritanopia (blue-blind)
#33435C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4c2299;
/* rgb */ color: rgb(76, 34, 153);
/* oklch */ color: oklch(38.9% 0.178 292.0);
Tailwind
colors: {
  custom: {
    50: '#8662b8',
    500: '#4c2299',
    950: '#000000',
  },
}
SCSS
$custom: #4c2299;
$custom-light: #8662b8;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2299",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 153
  },
  "hsl": {
    "h": 261.176,
    "s": 63.636,
    "l": 36.667
  },
  "oklch": {
    "l": 0.3889,
    "c": 0.17785,
    "h": 292
  },
  "luminance": 0.0498
}

Semantic roles & 50–950 ramp

primary
#4C2299
secondary
#9BBF58
accent
#E741AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4C2299

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

Preview Lab → · Contrast checker → · Palette generator →

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