#4C2298#4C2298

#4C2298 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.177 H 292.3°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#4C2298
RGBrgb(76, 34, 152)
HSLhsl(261, 63%, 36%)
HSVhsv(261, 78%, 60%)
CMYKcmyk(50%, 77.6%, 0%, 40.4%)
CIE-LABlab(26.58, 46.17, -56.97)
CIE-LCHlch(26.58, 73.33, 309.03°)
OKLaboklab(38.8% 0.067 -0.1635)
OKLCHoklch(38.8% 0.177 292.3)
XYZxyz(9.2184, 4.9472, 30.1689)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2298 #6E9822
analogous
#223398 #4C2298 #872298
triadic
#4C2298 #984C22 #22984C
tetradic
#4C2298 #982233 #6E9822 #229887
square
#4C2298 #982233 #6E9822 #229887
split-complementary
#4C2298 #988722 #339822
monochromatic
#1A0C34 #331766 #4C2298 #652DCA #885ADA

Accessibility & contrast

On white

10.55
#4C2298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4C2298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2298
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2298#FFFFFF#000000##FFFFFF
##4C22981.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c2298;
/* rgb */ color: rgb(76, 34, 152);
/* oklch */ color: oklch(38.8% 0.177 292.3);
Tailwind
colors: {
  custom: {
    50: '#8662b7',
    500: '#4c2298',
    950: '#000000',
  },
}
SCSS
$custom: #4c2298;
$custom-light: #8662b7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2298",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 261.356,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.38795,
    "c": 0.17671,
    "h": 292.3
  },
  "luminance": 0.04948
}

Semantic roles & 50–950 ramp

primary
#4C2298
secondary
#9ABE57
accent
#E641AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4C2298

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

Preview Lab → · Contrast checker → · Palette generator →

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