#4E28A3#4E28A3

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

Color values

HEX#4E28A3
RGBrgb(78, 40, 163)
HSLhsl(259, 61%, 40%)
HSVhsv(259, 75%, 64%)
CMYKcmyk(52.1%, 75.5%, 0%, 36.1%)
CIE-LABlab(28.85, 46.65, -59.94)
CIE-LCHlch(28.85, 75.95, 307.89°)
OKLaboklab(40.75% 0.0621 -0.1722)
OKLCHoklch(40.75% 0.183 289.8)
XYZxyz(10.5096, 5.7812, 35.2053)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E28A3 #7DA328
analogous
#283FA3 #4E28A3 #8C28A3
triadic
#4E28A3 #A34E28 #28A34E
tetradic
#4E28A3 #A3283F #7DA328 #28A38C
square
#4E28A3 #A3283F #7DA328 #28A38C
split-complementary
#4E28A3 #A38C28 #3FA328
monochromatic
#1F1041 #361C72 #4E28A3 #683ACF #8D6BDB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E28A3#FFFFFF#000000##FFFFFF
##4E28A31.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)
#0046A7
Deuteranopia (green-blind)
#0041A1
Tritanopia (blue-blind)
#2F4A64
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e28a3;
/* rgb */ color: rgb(78, 40, 163);
/* oklch */ color: oklch(40.8% 0.183 289.8);
Tailwind
colors: {
  custom: {
    50: '#8966bf',
    500: '#4e28a3',
    950: '#000000',
  },
}
SCSS
$custom: #4e28a3;
$custom-light: #8966bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e28a3",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 258.537,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40754,
    "c": 0.18308,
    "h": 289.8
  },
  "luminance": 0.05782
}

Semantic roles & 50–950 ramp

primary
#4E28A3
secondary
#A5C166
accent
#E444B2
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E28A3

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

Preview Lab → · Contrast checker → · Palette generator →

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