#4C2BAA#4C2BAA

#4C2BAA is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.188 H 287.0°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#4C2BAA
RGBrgb(76, 43, 170)
HSLhsl(256, 60%, 42%)
HSVhsv(256, 75%, 67%)
CMYKcmyk(55.3%, 74.7%, 0%, 33.3%)
CIE-LABlab(29.83, 46.85, -62.57)
CIE-LCHlch(29.83, 78.17, 306.83°)
OKLaboklab(41.59% 0.0549 -0.18)
OKLCHoklch(41.59% 0.188 287)
XYZxyz(11.0979, 6.1659, 38.6278)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2BAA #89AA2B
analogous
#2B49AA #4C2BAA #8C2BAA
triadic
#4C2BAA #AA4C2B #2BAA4C
tetradic
#4C2BAA #AA2B49 #89AA2B #2BAA8C
square
#4C2BAA #AA2B49 #89AA2B #2BAA8C
split-complementary
#4C2BAA #AA8C2B #49AA2B
monochromatic
#201248 #361F79 #4C2BAA #6743CF #8F74DC

Accessibility & contrast

On white

9.40
#4C2BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2BAA
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2BAA#FFFFFF#000000##FFFFFF
##4C2BAA1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AE
Deuteranopia (green-blind)
#0043A8
Tritanopia (blue-blind)
#234E68
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4c2baa;
/* rgb */ color: rgb(76, 43, 170);
/* oklch */ color: oklch(41.6% 0.188 287.0);
Tailwind
colors: {
  custom: {
    50: '#8868c4',
    500: '#4c2baa',
    950: '#000000',
  },
}
SCSS
$custom: #4c2baa;
$custom-light: #8868c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2baa",
  "rgb": {
    "r": 76,
    "g": 43,
    "b": 170
  },
  "hsl": {
    "h": 255.591,
    "s": 59.624,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41589,
    "c": 0.18821,
    "h": 287
  },
  "luminance": 0.06167
}

Semantic roles & 50–950 ramp

primary
#4C2BAA
secondary
#ADC36E
accent
#E345BA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4C2BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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