#4A28A3#4A28A3

#4A28A3 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.183 H 287.8°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#4A28A3
RGBrgb(74, 40, 163)
HSLhsl(257, 61%, 40%)
HSVhsv(257, 75%, 64%)
CMYKcmyk(54.6%, 75.5%, 0%, 36.1%)
CIE-LABlab(28.43, 46.05, -60.66)
CIE-LCHlch(28.43, 76.16, 307.21°)
OKLaboklab(40.35% 0.0561 -0.1745)
OKLCHoklch(40.35% 0.183 287.8)
XYZxyz(10.1917, 5.6173, 35.1904)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A28A3 #81A328
analogous
#2844A3 #4A28A3 #8728A3
triadic
#4A28A3 #A34A28 #28A34A
tetradic
#4A28A3 #A32844 #81A328 #28A387
square
#4A28A3 #A32844 #81A328 #28A387
split-complementary
#4A28A3 #A38728 #44A328
monochromatic
#1D1041 #341C72 #4A28A3 #633ACF #8A6BDB

Accessibility & contrast

On white

9.89
#4A28A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4A28A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A28A3
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A28A3#FFFFFF#000000##FFFFFF
##4A28A31.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A7
Deuteranopia (green-blind)
#0040A1
Tritanopia (blue-blind)
#254A64
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4a28a3;
/* rgb */ color: rgb(74, 40, 163);
/* oklch */ color: oklch(40.4% 0.183 287.8);
Tailwind
colors: {
  custom: {
    50: '#8666bf',
    500: '#4a28a3',
    950: '#000000',
  },
}
SCSS
$custom: #4a28a3;
$custom-light: #8666bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4a28a3",
  "rgb": {
    "r": 74,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 256.585,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40352,
    "c": 0.18325,
    "h": 287.8
  },
  "luminance": 0.05618
}

Semantic roles & 50–950 ramp

primary
#4A28A3
secondary
#A8C166
accent
#E444B8
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4A28A3

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

Preview Lab → · Contrast checker → · Palette generator →

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