#4C229A#4C229A

#4C229A is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.179 H 291.8°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#4C229A
RGBrgb(76, 34, 154)
HSLhsl(261, 64%, 37%)
HSVhsv(261, 78%, 60%)
CMYKcmyk(50.6%, 77.9%, 0%, 39.6%)
CIE-LABlab(26.77, 46.72, -57.88)
CIE-LCHlch(26.77, 74.39, 308.91°)
OKLaboklab(38.99% 0.0664 -0.1662)
OKLCHoklch(38.99% 0.179 291.8)
XYZxyz(9.3836, 5.0133, 31.0388)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C229A #709A22
analogous
#22349A #4C229A #88229A
triadic
#4C229A #9A4C22 #229A4C
tetradic
#4C229A #9A2234 #709A22 #229A88
square
#4C229A #9A2234 #709A22 #229A88
split-complementary
#4C229A #9A8822 #349A22
monochromatic
#1B0C36 #331768 #4C229A #652DCC #885BDB

Accessibility & contrast

On white

10.49
#4C229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C229A
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C229A#FFFFFF#000000##FFFFFF
##4C229A1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419D
Deuteranopia (green-blind)
#003D98
Tritanopia (blue-blind)
#32435D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4c229a;
/* rgb */ color: rgb(76, 34, 154);
/* oklch */ color: oklch(39.0% 0.179 291.8);
Tailwind
colors: {
  custom: {
    50: '#8762b9',
    500: '#4c229a',
    950: '#000000',
  },
}
SCSS
$custom: #4c229a;
$custom-light: #8762b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c229a",
  "rgb": {
    "r": 76,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 261,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.38985,
    "c": 0.17898,
    "h": 291.8
  },
  "luminance": 0.05014
}

Semantic roles & 50–950 ramp

primary
#4C229A
secondary
#9BBF58
accent
#E741AD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #4C229A

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

Preview Lab → · Contrast checker → · Palette generator →

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