#4C2CAA#4C2CAA

#4C2CAA is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.187 H 286.8°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#4C2CAA
RGBrgb(76, 44, 170)
HSLhsl(255, 59%, 42%)
HSVhsv(255, 74%, 67%)
CMYKcmyk(55.3%, 74.1%, 0%, 33.3%)
CIE-LABlab(30.01, 46.34, -62.27)
CIE-LCHlch(30.01, 77.62, 306.65°)
OKLaboklab(41.72% 0.0541 -0.1791)
OKLCHoklch(41.72% 0.187 286.8)
XYZxyz(11.1347, 6.2395, 38.6401)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2CAA #8AAA2C
analogous
#2C4BAA #4C2CAA #8B2CAA
triadic
#4C2CAA #AA4C2C #2CAA4C
tetradic
#4C2CAA #AA2C4B #8AAA2C #2CAA8B
square
#4C2CAA #AA2C4B #8AAA2C #2CAA8B
split-complementary
#4C2CAA #AA8B2C #4BAA2C
monochromatic
#211349 #361F79 #4C2CAA #6844CF #8F75DB

Accessibility & contrast

On white

9.34
#4C2CAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#4C2CAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2CAA
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2CAA#FFFFFF#000000##FFFFFF
##4C2CAA1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAE
Deuteranopia (green-blind)
#0043A8
Tritanopia (blue-blind)
#234E69
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4c2caa;
/* rgb */ color: rgb(76, 44, 170);
/* oklch */ color: oklch(41.7% 0.187 286.8);
Tailwind
colors: {
  custom: {
    50: '#8869c4',
    500: '#4c2caa',
    950: '#000000',
  },
}
SCSS
$custom: #4c2caa;
$custom-light: #8869c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2caa",
  "rgb": {
    "r": 76,
    "g": 44,
    "b": 170
  },
  "hsl": {
    "h": 255.238,
    "s": 58.879,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41717,
    "c": 0.18715,
    "h": 286.8
  },
  "luminance": 0.0624
}

Semantic roles & 50–950 ramp

primary
#4C2CAA
secondary
#AEC36F
accent
#E246BA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4C2CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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