#4A28A4#4A28A4

#4A28A4 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.184 H 287.6°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#4A28A4
RGBrgb(74, 40, 164)
HSLhsl(256, 61%, 40%)
HSVhsv(256, 76%, 64%)
CMYKcmyk(54.9%, 75.6%, 0%, 35.7%)
CIE-LABlab(28.52, 46.34, -61.11)
CIE-LCHlch(28.52, 76.69, 307.18°)
OKLaboklab(40.45% 0.0558 -0.1758)
OKLCHoklch(40.45% 0.184 287.6)
XYZxyz(10.2817, 5.6532, 35.6642)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A28A4 #82A428
analogous
#2844A4 #4A28A4 #8828A4
triadic
#4A28A4 #A44A28 #28A44A
tetradic
#4A28A4 #A42844 #82A428 #28A488
square
#4A28A4 #A42844 #82A428 #28A488
split-complementary
#4A28A4 #A48828 #44A428
monochromatic
#1E1042 #341C73 #4A28A4 #633ACF #8A6BDB

Accessibility & contrast

On white

9.86
#4A28A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4A28A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A28A4
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A28A4#FFFFFF#000000##FFFFFF
##4A28A41.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A8
Deuteranopia (green-blind)
#0040A2
Tritanopia (blue-blind)
#244A64
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4a28a4;
/* rgb */ color: rgb(74, 40, 164);
/* oklch */ color: oklch(40.4% 0.184 287.6);
Tailwind
colors: {
  custom: {
    50: '#8766c0',
    500: '#4a28a4',
    950: '#000000',
  },
}
SCSS
$custom: #4a28a4;
$custom-light: #8766c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a28a4",
  "rgb": {
    "r": 74,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 256.452,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.40447,
    "c": 0.18442,
    "h": 287.6
  },
  "luminance": 0.05654
}

Semantic roles & 50–950 ramp

primary
#4A28A4
secondary
#A8C166
accent
#E444B8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A28A4

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

Preview Lab → · Contrast checker → · Palette generator →

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