#4E28A6#4E28A6

#4E28A6 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.0% C 0.187 H 289.2°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#4E28A6
RGBrgb(78, 40, 166)
HSLhsl(258, 61%, 40%)
HSVhsv(258, 76%, 65%)
CMYKcmyk(53%, 75.9%, 0%, 34.9%)
CIE-LABlab(29.13, 47.50, -61.29)
CIE-LCHlch(29.13, 77.54, 307.77°)
OKLaboklab(41.04% 0.0613 -0.1762)
OKLCHoklch(41.04% 0.187 289.2)
XYZxyz(10.7816, 5.8900, 36.6378)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E28A6 #80A628
analogous
#2841A6 #4E28A6 #8D28A6
triadic
#4E28A6 #A64E28 #28A64E
tetradic
#4E28A6 #A62841 #80A628 #28A68D
square
#4E28A6 #A62841 #80A628 #28A68D
split-complementary
#4E28A6 #A68D28 #41A628
monochromatic
#201043 #371C75 #4E28A6 #683BD0 #8E6DDC

Accessibility & contrast

On white

9.64
#4E28A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4E28A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E28A6
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E28A6#FFFFFF#000000##FFFFFF
##4E28A61.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AA
Deuteranopia (green-blind)
#0042A4
Tritanopia (blue-blind)
#2D4B65
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e28a6;
/* rgb */ color: rgb(78, 40, 166);
/* oklch */ color: oklch(41.0% 0.187 289.2);
Tailwind
colors: {
  custom: {
    50: '#8966c2',
    500: '#4e28a6',
    950: '#000000',
  },
}
SCSS
$custom: #4e28a6;
$custom-light: #8966c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e28a6",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 166
  },
  "hsl": {
    "h": 258.095,
    "s": 61.165,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41036,
    "c": 0.18656,
    "h": 289.2
  },
  "luminance": 0.0589
}

Semantic roles & 50–950 ramp

primary
#4E28A6
secondary
#A7C267
accent
#E444B4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #4E28A6

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

Preview Lab → · Contrast checker → · Palette generator →

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