#4C28AC#4C28AC

#4C28AC is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.4% C 0.194 H 287.0°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#4C28AC
RGBrgb(76, 40, 172)
HSLhsl(256, 62%, 42%)
HSVhsv(256, 77%, 67%)
CMYKcmyk(55.8%, 76.7%, 0%, 32.5%)
CIE-LABlab(29.49, 48.92, -64.32)
CIE-LCHlch(29.49, 80.81, 307.25°)
OKLaboklab(41.41% 0.0567 -0.1851)
OKLCHoklch(41.41% 0.194 287)
XYZxyz(11.1835, 6.0320, 39.5967)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C28AC #88AC28
analogous
#2846AC #4C28AC #8E28AC
triadic
#4C28AC #AC4C28 #28AC4C
tetradic
#4C28AC #AC2846 #88AC28 #28AC8E
square
#4C28AC #AC2846 #88AC28 #28AC8E
split-complementary
#4C28AC #AC8E28 #46AC28
monochromatic
#201149 #361C7A #4C28AC #673FD2 #8E71DE

Accessibility & contrast

On white

9.52
#4C28AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4C28AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C28AC
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C28AC#FFFFFF#000000##FFFFFF
##4C28AC1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B0
Deuteranopia (green-blind)
#0042AA
Tritanopia (blue-blind)
#214D69
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4c28ac;
/* rgb */ color: rgb(76, 40, 172);
/* oklch */ color: oklch(41.4% 0.194 287.0);
Tailwind
colors: {
  custom: {
    50: '#8966c6',
    500: '#4c28ac',
    950: '#000000',
  },
}
SCSS
$custom: #4c28ac;
$custom-light: #8966c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c28ac",
  "rgb": {
    "r": 76,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 256.364,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41412,
    "c": 0.1936,
    "h": 287
  },
  "luminance": 0.06033
}

Semantic roles & 50–950 ramp

primary
#4C28AC
secondary
#ACC56B
accent
#E542B9
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4C28AC

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

Preview Lab → · Contrast checker → · Palette generator →

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