#4C229C#4C229C

#4C229C is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.181 H 291.3°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#4C229C
RGBrgb(76, 34, 156)
HSLhsl(261, 64%, 37%)
HSVhsv(261, 78%, 61%)
CMYKcmyk(51.3%, 78.2%, 0%, 38.8%)
CIE-LABlab(26.96, 47.28, -58.79)
CIE-LCHlch(26.96, 75.44, 308.80°)
OKLaboklab(39.17% 0.0658 -0.1689)
OKLCHoklch(39.17% 0.181 291.3)
XYZxyz(9.5516, 5.0805, 31.9234)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C229C #729C22
analogous
#22359C #4C229C #89229C
triadic
#4C229C #9C4C22 #229C4C
tetradic
#4C229C #9C2235 #729C22 #229C89
square
#4C229C #9C2235 #729C22 #229C89
split-complementary
#4C229C #9C8922 #359C22
monochromatic
#1B0C38 #34176A #4C229C #642DCE #885DDC

Accessibility & contrast

On white

10.42
#4C229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#4C229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C229C
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C229C#FFFFFF#000000##FFFFFF
##4C229C1.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#003D9A
Tritanopia (blue-blind)
#30445E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #4c229c;
/* rgb */ color: rgb(76, 34, 156);
/* oklch */ color: oklch(39.2% 0.181 291.3);
Tailwind
colors: {
  custom: {
    50: '#8762ba',
    500: '#4c229c',
    950: '#000000',
  },
}
SCSS
$custom: #4c229c;
$custom-light: #8762ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4c229c",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 260.656,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39175,
    "c": 0.18125,
    "h": 291.3
  },
  "luminance": 0.05081
}

Semantic roles & 50–950 ramp

primary
#4C229C
secondary
#9DC05A
accent
#E741AE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4C229C

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

Preview Lab → · Contrast checker → · Palette generator →

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