#4D28AB#4D28AB

#4D28AB is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.4% C 0.192 H 287.7°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#4D28AB
RGBrgb(77, 40, 171)
HSLhsl(257, 62%, 41%)
HSVhsv(257, 77%, 67%)
CMYKcmyk(55%, 76.6%, 0%, 32.9%)
CIE-LABlab(29.50, 48.77, -63.70)
CIE-LCHlch(29.50, 80.23, 307.44°)
OKLaboklab(41.41% 0.0585 -0.1833)
OKLCHoklch(41.41% 0.192 287.7)
XYZxyz(11.1679, 6.0351, 39.0966)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D28AB #86AB28
analogous
#2844AB #4D28AB #8F28AB
triadic
#4D28AB #AB4D28 #28AB4D
tetradic
#4D28AB #AB2844 #86AB28 #28AB8F
square
#4D28AB #AB2844 #86AB28 #28AB8F
split-complementary
#4D28AB #AB8F28 #44AB28
monochromatic
#201148 #371C79 #4D28AB #683ED2 #8F70DE

Accessibility & contrast

On white

9.51
#4D28AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4D28AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D28AB
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D28AB#FFFFFF#000000##FFFFFF
##4D28AB1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AF
Deuteranopia (green-blind)
#0042A9
Tritanopia (blue-blind)
#254D68
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4d28ab;
/* rgb */ color: rgb(77, 40, 171);
/* oklch */ color: oklch(41.4% 0.192 287.7);
Tailwind
colors: {
  custom: {
    50: '#8966c5',
    500: '#4d28ab',
    950: '#000000',
  },
}
SCSS
$custom: #4d28ab;
$custom-light: #8966c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4d28ab",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 256.947,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41412,
    "c": 0.19238,
    "h": 287.7
  },
  "luminance": 0.06036
}

Semantic roles & 50–950 ramp

primary
#4D28AB
secondary
#ABC46A
accent
#E543B7
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4D28AB

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

Preview Lab → · Contrast checker → · Palette generator →

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