#4A28AC#4A28AC

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

Color values

HEX#4A28AC
RGBrgb(74, 40, 172)
HSLhsl(255, 62%, 42%)
HSVhsv(255, 77%, 67%)
CMYKcmyk(57%, 76.7%, 0%, 32.5%)
CIE-LABlab(29.29, 48.65, -64.66)
CIE-LCHlch(29.29, 80.92, 306.96°)
OKLaboklab(41.22% 0.0537 -0.1862)
OKLCHoklch(41.22% 0.194 286.1)
XYZxyz(11.0270, 5.9514, 39.5894)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A28AC #8AAC28
analogous
#2848AC #4A28AC #8C28AC
triadic
#4A28AC #AC4A28 #28AC4A
tetradic
#4A28AC #AC2848 #8AAC28 #28AC8C
square
#4A28AC #AC2848 #8AAC28 #28AC8C
split-complementary
#4A28AC #AC8C28 #48AC28
monochromatic
#1F1149 #351C7A #4A28AC #653FD2 #8D71DE

Accessibility & contrast

On white

9.59
#4A28AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A28AC
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A28AC#FFFFFF#000000##FFFFFF
##4A28AC1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B0
Deuteranopia (green-blind)
#0041AA
Tritanopia (blue-blind)
#1A4E69
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4a28ac;
/* rgb */ color: rgb(74, 40, 172);
/* oklch */ color: oklch(41.2% 0.194 286.1);
Tailwind
colors: {
  custom: {
    50: '#8866c6',
    500: '#4a28ac',
    950: '#000000',
  },
}
SCSS
$custom: #4a28ac;
$custom-light: #8866c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4a28ac",
  "rgb": {
    "r": 74,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 255.455,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.4122,
    "c": 0.19376,
    "h": 286.1
  },
  "luminance": 0.05952
}

Semantic roles & 50–950 ramp

primary
#4A28AC
secondary
#AEC56B
accent
#E542BB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4A28AC

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

Preview Lab → · Contrast checker → · Palette generator →

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