#4C28AA#4C28AA

#4C28AA is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.191 H 287.4°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#4C28AA
RGBrgb(76, 40, 170)
HSLhsl(257, 62%, 41%)
HSVhsv(257, 76%, 67%)
CMYKcmyk(55.3%, 76.5%, 0%, 33.3%)
CIE-LABlab(29.30, 48.35, -63.44)
CIE-LCHlch(29.30, 79.76, 307.31°)
OKLaboklab(41.22% 0.0572 -0.1825)
OKLCHoklch(41.22% 0.191 287.4)
XYZxyz(10.9928, 5.9558, 38.5928)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C28AA #86AA28
analogous
#2845AA #4C28AA #8D28AA
triadic
#4C28AA #AA4C28 #28AA4C
tetradic
#4C28AA #AA2845 #86AA28 #28AA8D
square
#4C28AA #AA2845 #86AA28 #28AA8D
split-complementary
#4C28AA #AA8D28 #45AA28
monochromatic
#201147 #361C78 #4C28AA #673ED2 #8E6FDD

Accessibility & contrast

On white

9.58
#4C28AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4C28AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C28AA
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C28AA#FFFFFF#000000##FFFFFF
##4C28AA1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AE
Deuteranopia (green-blind)
#0041A8
Tritanopia (blue-blind)
#244D68
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4c28aa;
/* rgb */ color: rgb(76, 40, 170);
/* oklch */ color: oklch(41.2% 0.191 287.4);
Tailwind
colors: {
  custom: {
    50: '#8966c4',
    500: '#4c28aa',
    950: '#000000',
  },
}
SCSS
$custom: #4c28aa;
$custom-light: #8966c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c28aa",
  "rgb": {
    "r": 76,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 256.615,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41219,
    "c": 0.19129,
    "h": 287.4
  },
  "luminance": 0.05956
}

Semantic roles & 50–950 ramp

primary
#4C28AA
secondary
#ABC46A
accent
#E543B8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4C28AA

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

Preview Lab → · Contrast checker → · Palette generator →

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