#4D28A4#4D28A4

#4D28A4 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.7% C 0.184 H 289.1°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#4D28A4
RGBrgb(77, 40, 164)
HSLhsl(258, 61%, 40%)
HSVhsv(258, 76%, 64%)
CMYKcmyk(53%, 75.6%, 0%, 35.7%)
CIE-LABlab(28.84, 46.78, -60.57)
CIE-LCHlch(28.84, 76.54, 307.68°)
OKLaboklab(40.75% 0.0604 -0.1741)
OKLCHoklch(40.75% 0.184 289.1)
XYZxyz(10.5182, 5.7752, 35.6753)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D28A4 #7FA428
analogous
#2841A4 #4D28A4 #8B28A4
triadic
#4D28A4 #A44D28 #28A44D
tetradic
#4D28A4 #A42841 #7FA428 #28A48B
square
#4D28A4 #A42841 #7FA428 #28A48B
split-complementary
#4D28A4 #A48B28 #41A428
monochromatic
#1F1042 #361C73 #4D28A4 #673ACF #8D6BDB

Accessibility & contrast

On white

9.74
#4D28A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4D28A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D28A4
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D28A4#FFFFFF#000000##FFFFFF
##4D28A41.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A8
Deuteranopia (green-blind)
#0041A2
Tritanopia (blue-blind)
#2C4A64
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4d28a4;
/* rgb */ color: rgb(77, 40, 164);
/* oklch */ color: oklch(40.7% 0.184 289.1);
Tailwind
colors: {
  custom: {
    50: '#8866c0',
    500: '#4d28a4',
    950: '#000000',
  },
}
SCSS
$custom: #4d28a4;
$custom-light: #8866c0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d28a4",
  "rgb": {
    "r": 77,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 257.903,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.40746,
    "c": 0.18427,
    "h": 289.1
  },
  "luminance": 0.05776
}

Semantic roles & 50–950 ramp

primary
#4D28A4
secondary
#A6C166
accent
#E444B4
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4D28A4

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

Preview Lab → · Contrast checker → · Palette generator →

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