#4C28AE#4C28AE

#4C28AE is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.6% C 0.196 H 286.6°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#4C28AE
RGBrgb(76, 40, 174)
HSLhsl(256, 63%, 42%)
HSVhsv(256, 77%, 68%)
CMYKcmyk(56.3%, 77%, 0%, 31.8%)
CIE-LABlab(29.69, 49.49, -65.20)
CIE-LCHlch(29.69, 81.86, 307.20°)
OKLaboklab(41.61% 0.0561 -0.1877)
OKLCHoklch(41.61% 0.196 286.6)
XYZxyz(11.3770, 6.1094, 40.6159)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C28AE #8AAE28
analogous
#2847AE #4C28AE #8F28AE
triadic
#4C28AE #AE4C28 #28AE4C
tetradic
#4C28AE #AE2847 #8AAE28 #28AE8F
square
#4C28AE #AE2847 #8AAE28 #28AE8F
split-complementary
#4C28AE #AE8F28 #47AE28
monochromatic
#21114A #361D7C #4C28AE #6840D3 #8F72DF

Accessibility & contrast

On white

9.45
#4C28AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4C28AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C28AE
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C28AE#FFFFFF#000000##FFFFFF
##4C28AE1.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B2
Deuteranopia (green-blind)
#0042AC
Tritanopia (blue-blind)
#1F4E6A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4c28ae;
/* rgb */ color: rgb(76, 40, 174);
/* oklch */ color: oklch(41.6% 0.196 286.6);
Tailwind
colors: {
  custom: {
    50: '#8967c7',
    500: '#4c28ae',
    950: '#000000',
  },
}
SCSS
$custom: #4c28ae;
$custom-light: #8967c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4c28ae",
  "rgb": {
    "r": 76,
    "g": 40,
    "b": 174
  },
  "hsl": {
    "h": 256.119,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41606,
    "c": 0.1959,
    "h": 286.6
  },
  "luminance": 0.0611
}

Semantic roles & 50–950 ramp

primary
#4C28AE
secondary
#AEC66C
accent
#E642BA
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4C28AE

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

Preview Lab → · Contrast checker → · Palette generator →

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