#4A28A9#4A28A9

#4A28A9 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.190 H 286.6°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#4A28A9
RGBrgb(74, 40, 169)
HSLhsl(256, 62%, 41%)
HSVhsv(256, 76%, 66%)
CMYKcmyk(56.2%, 76.3%, 0%, 33.7%)
CIE-LABlab(29.00, 47.78, -63.34)
CIE-LCHlch(29.00, 79.34, 307.03°)
OKLaboklab(40.93% 0.0545 -0.1823)
OKLCHoklch(40.93% 0.19 286.6)
XYZxyz(10.7421, 5.8374, 38.0891)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A28A9 #87A928
analogous
#2846A9 #4A28A9 #8A28A9
triadic
#4A28A9 #A94A28 #28A94A
tetradic
#4A28A9 #A92846 #87A928 #28A98A
square
#4A28A9 #A92846 #87A928 #28A98A
split-complementary
#4A28A9 #A98A28 #46A928
monochromatic
#1F1146 #341C78 #4A28A9 #643DD1 #8C6FDD

Accessibility & contrast

On white

9.69
#4A28A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4A28A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A28A9
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A28A9#FFFFFF#000000##FFFFFF
##4A28A91.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AD
Deuteranopia (green-blind)
#0041A7
Tritanopia (blue-blind)
#1F4C67
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4a28a9;
/* rgb */ color: rgb(74, 40, 169);
/* oklch */ color: oklch(40.9% 0.190 286.6);
Tailwind
colors: {
  custom: {
    50: '#8766c4',
    500: '#4a28a9',
    950: '#000000',
  },
}
SCSS
$custom: #4a28a9;
$custom-light: #8766c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4a28a9",
  "rgb": {
    "r": 74,
    "g": 40,
    "b": 169
  },
  "hsl": {
    "h": 255.814,
    "s": 61.722,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40929,
    "c": 0.19027,
    "h": 286.6
  },
  "luminance": 0.05838
}

Semantic roles & 50–950 ramp

primary
#4A28A9
secondary
#ACC469
accent
#E543BA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4A28A9

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

Preview Lab → · Contrast checker → · Palette generator →

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