#4E28A1#4E28A1

#4E28A1 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.181 H 290.3°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#4E28A1
RGBrgb(78, 40, 161)
HSLhsl(259, 60%, 39%)
HSVhsv(259, 75%, 63%)
CMYKcmyk(51.6%, 75.2%, 0%, 36.9%)
CIE-LABlab(28.67, 46.09, -59.03)
CIE-LCHlch(28.67, 74.89, 307.98°)
OKLaboklab(40.57% 0.0626 -0.1696)
OKLCHoklch(40.57% 0.181 290.3)
XYZxyz(10.3319, 5.7101, 34.2691)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E28A1 #7BA128
analogous
#283FA1 #4E28A1 #8B28A1
triadic
#4E28A1 #A14E28 #28A14E
tetradic
#4E28A1 #A1283F #7BA128 #28A18B
square
#4E28A1 #A1283F #7BA128 #28A18B
split-complementary
#4E28A1 #A18B28 #3FA128
monochromatic
#1F103F #361C70 #4E28A1 #6739CE #8D6ADA

Accessibility & contrast

On white

9.80
#4E28A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4E28A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E28A1
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E28A1#FFFFFF#000000##FFFFFF
##4E28A11.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A4
Deuteranopia (green-blind)
#00419F
Tritanopia (blue-blind)
#314962
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e28a1;
/* rgb */ color: rgb(78, 40, 161);
/* oklch */ color: oklch(40.6% 0.181 290.3);
Tailwind
colors: {
  custom: {
    50: '#8866be',
    500: '#4e28a1',
    950: '#000000',
  },
}
SCSS
$custom: #4e28a1;
$custom-light: #8866be;
$custom-dark: #000000;
JSON
{
  "hex": "#4e28a1",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 161
  },
  "hsl": {
    "h": 258.843,
    "s": 60.199,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40567,
    "c": 0.18076,
    "h": 290.3
  },
  "luminance": 0.0571
}

Semantic roles & 50–950 ramp

primary
#4E28A1
secondary
#A3C065
accent
#E344B1
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E28A1

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

Preview Lab → · Contrast checker → · Palette generator →

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