#4A28AA#4A28AA

#4A28AA is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.0% C 0.191 H 286.4°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#4A28AA
RGBrgb(74, 40, 170)
HSLhsl(256, 62%, 41%)
HSVhsv(256, 76%, 67%)
CMYKcmyk(56.5%, 76.5%, 0%, 33.3%)
CIE-LABlab(29.10, 48.07, -63.78)
CIE-LCHlch(29.10, 79.87, 307.01°)
OKLaboklab(41.03% 0.0542 -0.1836)
OKLCHoklch(41.03% 0.191 286.4)
XYZxyz(10.8364, 5.8751, 38.5854)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A28AA #88AA28
analogous
#2847AA #4A28AA #8B28AA
triadic
#4A28AA #AA4A28 #28AA4A
tetradic
#4A28AA #AA2847 #88AA28 #28AA8B
square
#4A28AA #AA2847 #88AA28 #28AA8B
split-complementary
#4A28AA #AA8B28 #47AA28
monochromatic
#1F1147 #341C78 #4A28AA #643ED2 #8C6FDD

Accessibility & contrast

On white

9.65
#4A28AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A28AA
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A28AA#FFFFFF#000000##FFFFFF
##4A28AA1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a28aa;
/* rgb */ color: rgb(74, 40, 170);
/* oklch */ color: oklch(41.0% 0.191 286.4);
Tailwind
colors: {
  custom: {
    50: '#8866c4',
    500: '#4a28aa',
    950: '#000000',
  },
}
SCSS
$custom: #4a28aa;
$custom-light: #8866c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4a28aa",
  "rgb": {
    "r": 74,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 255.692,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41026,
    "c": 0.19143,
    "h": 286.4
  },
  "luminance": 0.05876
}

Semantic roles & 50–950 ramp

primary
#4A28AA
secondary
#ACC46A
accent
#E543BB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4A28AA

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

Preview Lab → · Contrast checker → · Palette generator →

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