#4C2CAC#4C2CAC

#4C2CAC is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.190 H 286.4°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#4C2CAC
RGBrgb(76, 44, 172)
HSLhsl(255, 59%, 42%)
HSVhsv(255, 74%, 67%)
CMYKcmyk(55.8%, 74.4%, 0%, 32.5%)
CIE-LABlab(30.20, 46.92, -63.17)
CIE-LCHlch(30.20, 78.69, 306.61°)
OKLaboklab(41.91% 0.0536 -0.1818)
OKLCHoklch(41.91% 0.19 286.4)
XYZxyz(11.3253, 6.3158, 39.6440)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2CAC #8CAC2C
analogous
#2C4CAC #4C2CAC #8C2CAC
triadic
#4C2CAC #AC4C2C #2CAC4C
tetradic
#4C2CAC #AC2C4C #8CAC2C #2CAC8C
square
#4C2CAC #AC2C4C #8CAC2C #2CAC8C
split-complementary
#4C2CAC #AC8C2C #4CAC2C
monochromatic
#21134B #36207B #4C2CAC #6846D0 #9076DC

Accessibility & contrast

On white

9.28
#4C2CAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#4C2CAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2CAC
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2CAC#FFFFFF#000000##FFFFFF
##4C2CAC1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB0
Deuteranopia (green-blind)
#0043AA
Tritanopia (blue-blind)
#214F6A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4c2cac;
/* rgb */ color: rgb(76, 44, 172);
/* oklch */ color: oklch(41.9% 0.190 286.4);
Tailwind
colors: {
  custom: {
    50: '#8969c6',
    500: '#4c2cac',
    950: '#000000',
  },
}
SCSS
$custom: #4c2cac;
$custom-light: #8969c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2cac",
  "rgb": {
    "r": 76,
    "g": 44,
    "b": 172
  },
  "hsl": {
    "h": 255,
    "s": 59.259,
    "l": 42.353
  },
  "oklch": {
    "l": 0.41906,
    "c": 0.18952,
    "h": 286.4
  },
  "luminance": 0.06316
}

Semantic roles & 50–950 ramp

primary
#4C2CAC
secondary
#AFC470
accent
#E245BB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4C2CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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