#4C2AAB#4C2AAB

#4C2AAB is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.6% C 0.190 H 286.9°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#4C2AAB
RGBrgb(76, 42, 171)
HSLhsl(256, 61%, 42%)
HSVhsv(256, 75%, 67%)
CMYKcmyk(55.6%, 75.4%, 0%, 32.9%)
CIE-LABlab(29.74, 47.65, -63.31)
CIE-LCHlch(29.74, 79.23, 306.96°)
OKLaboklab(41.56% 0.0554 -0.1822)
OKLCHoklch(41.56% 0.19 286.9)
XYZxyz(11.1569, 6.1321, 39.1159)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2AAB #89AB2A
analogous
#2A49AB #4C2AAB #8D2AAB
triadic
#4C2AAB #AB4C2A #2AAB4C
tetradic
#4C2AAB #AB2A49 #89AB2A #2AAB8D
square
#4C2AAB #AB2A49 #89AB2A #2AAB8D
split-complementary
#4C2AAB #AB8D2A #49AB2A
monochromatic
#201249 #361E7A #4C2AAB #6742D1 #8F73DD

Accessibility & contrast

On white

9.43
#4C2AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4C2AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2AAB
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2AAB#FFFFFF#000000##FFFFFF
##4C2AAB1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AF
Deuteranopia (green-blind)
#0042A9
Tritanopia (blue-blind)
#224E69
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4c2aab;
/* rgb */ color: rgb(76, 42, 171);
/* oklch */ color: oklch(41.6% 0.190 286.9);
Tailwind
colors: {
  custom: {
    50: '#8967c5',
    500: '#4c2aab',
    950: '#000000',
  },
}
SCSS
$custom: #4c2aab;
$custom-light: #8967c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2aab",
  "rgb": {
    "r": 76,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 255.814,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41558,
    "c": 0.19042,
    "h": 286.9
  },
  "luminance": 0.06133
}

Semantic roles & 50–950 ramp

primary
#4C2AAB
secondary
#ADC46D
accent
#E444BA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4C2AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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