#4C2DAC#4C2DAC

#4C2DAC is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.188 H 286.3°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#4C2DAC
RGBrgb(76, 45, 172)
HSLhsl(255, 59%, 43%)
HSVhsv(255, 74%, 67%)
CMYKcmyk(55.8%, 73.8%, 0%, 32.5%)
CIE-LABlab(30.38, 46.41, -62.87)
CIE-LCHlch(30.38, 78.14, 306.43°)
OKLaboklab(42.04% 0.0529 -0.1809)
OKLCHoklch(42.04% 0.188 286.3)
XYZxyz(11.3630, 6.3912, 39.6566)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2DAC #8DAC2D
analogous
#2D4DAC #4C2DAC #8C2DAC
triadic
#4C2DAC #AC4C2D #2DAC4C
tetradic
#4C2DAC #AC2D4D #8DAC2D #2DAC8C
square
#4C2DAC #AC2D4D #8DAC2D #2DAC8C
split-complementary
#4C2DAC #AC8C2D #4DAC2D
monochromatic
#21144B #37207B #4C2DAC #6847CF #9078DC

Accessibility & contrast

On white

9.22
#4C2DAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4C2DAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2DAC
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2DAC#FFFFFF#000000##FFFFFF
##4C2DAC1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB0
Deuteranopia (green-blind)
#0044AA
Tritanopia (blue-blind)
#21506A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4c2dac;
/* rgb */ color: rgb(76, 45, 172);
/* oklch */ color: oklch(42.0% 0.188 286.3);
Tailwind
colors: {
  custom: {
    50: '#8969c6',
    500: '#4c2dac',
    950: '#000000',
  },
}
SCSS
$custom: #4c2dac;
$custom-light: #8969c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2dac",
  "rgb": {
    "r": 76,
    "g": 45,
    "b": 172
  },
  "hsl": {
    "h": 254.646,
    "s": 58.525,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42035,
    "c": 0.18846,
    "h": 286.3
  },
  "luminance": 0.06392
}

Semantic roles & 50–950 ramp

primary
#4C2DAC
secondary
#AFC471
accent
#E246BC
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4C2DAC

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

Preview Lab → · Contrast checker → · Palette generator →

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