#4A28AB#4A28AB

#4A28AB is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.193 H 286.3°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#4A28AB
RGBrgb(74, 40, 171)
HSLhsl(256, 62%, 41%)
HSVhsv(256, 77%, 67%)
CMYKcmyk(56.7%, 76.6%, 0%, 32.9%)
CIE-LABlab(29.19, 48.36, -64.22)
CIE-LCHlch(29.19, 80.39, 306.98°)
OKLaboklab(41.12% 0.0539 -0.1849)
OKLCHoklch(41.12% 0.193 286.3)
XYZxyz(10.9313, 5.9131, 39.0855)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A28AB #89AB28
analogous
#2847AB #4A28AB #8C28AB
triadic
#4A28AB #AB4A28 #28AB4A
tetradic
#4A28AB #AB2847 #89AB28 #28AB8C
square
#4A28AB #AB2847 #89AB28 #28AB8C
split-complementary
#4A28AB #AB8C28 #47AB28
monochromatic
#1F1148 #351C79 #4A28AB #653ED2 #8C70DE

Accessibility & contrast

On white

9.62
#4A28AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4A28AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A28AB
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A28AB#FFFFFF#000000##FFFFFF
##4A28AB1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AF
Deuteranopia (green-blind)
#0041A9
Tritanopia (blue-blind)
#1C4D68
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4a28ab;
/* rgb */ color: rgb(74, 40, 171);
/* oklch */ color: oklch(41.1% 0.193 286.3);
Tailwind
colors: {
  custom: {
    50: '#8866c5',
    500: '#4a28ab',
    950: '#000000',
  },
}
SCSS
$custom: #4a28ab;
$custom-light: #8866c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4a28ab",
  "rgb": {
    "r": 74,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 255.573,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41123,
    "c": 0.1926,
    "h": 286.3
  },
  "luminance": 0.05914
}

Semantic roles & 50–950 ramp

primary
#4A28AB
secondary
#ADC46A
accent
#E543BB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4A28AB

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

Preview Lab → · Contrast checker → · Palette generator →

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