#4D28AE#4D28AE

#4D28AE is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.196 H 287.1°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#4D28AE
RGBrgb(77, 40, 174)
HSLhsl(257, 63%, 42%)
HSVhsv(257, 77%, 68%)
CMYKcmyk(55.7%, 77%, 0%, 31.8%)
CIE-LABlab(29.79, 49.62, -65.03)
CIE-LCHlch(29.79, 81.80, 307.35°)
OKLaboklab(41.7% 0.0576 -0.1872)
OKLCHoklch(41.7% 0.196 287.1)
XYZxyz(11.4571, 6.1507, 40.6197)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D28AE #89AE28
analogous
#2846AE #4D28AE #9028AE
triadic
#4D28AE #AE4D28 #28AE4D
tetradic
#4D28AE #AE2846 #89AE28 #28AE90
square
#4D28AE #AE2846 #89AE28 #28AE90
split-complementary
#4D28AE #AE9028 #46AE28
monochromatic
#21114A #371D7C #4D28AE #6940D3 #9072DF

Accessibility & contrast

On white

9.42
#4D28AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4D28AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D28AE
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D28AE#FFFFFF#000000##FFFFFF
##4D28AE1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B2
Deuteranopia (green-blind)
#0042AC
Tritanopia (blue-blind)
#224E6A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4d28ae;
/* rgb */ color: rgb(77, 40, 174);
/* oklch */ color: oklch(41.7% 0.196 287.1);
Tailwind
colors: {
  custom: {
    50: '#8a67c7',
    500: '#4d28ae',
    950: '#000000',
  },
}
SCSS
$custom: #4d28ae;
$custom-light: #8a67c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d28ae",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 174
  },
  "hsl": {
    "h": 256.567,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41702,
    "c": 0.19583,
    "h": 287.1
  },
  "luminance": 0.06151
}

Semantic roles & 50–950 ramp

primary
#4D28AE
secondary
#ADC66C
accent
#E642B9
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4D28AE

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

Preview Lab → · Contrast checker → · Palette generator →

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