#4E28AA#4E28AA

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

Color values

HEX#4E28AA
RGBrgb(78, 40, 170)
HSLhsl(258, 62%, 41%)
HSVhsv(258, 76%, 67%)
CMYKcmyk(54.1%, 76.5%, 0%, 33.3%)
CIE-LABlab(29.51, 48.63, -63.08)
CIE-LCHlch(29.51, 79.65, 307.63°)
OKLaboklab(41.42% 0.0603 -0.1814)
OKLCHoklch(41.42% 0.191 288.4)
XYZxyz(11.1542, 6.0390, 38.6003)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E28AA #84AA28
analogous
#2843AA #4E28AA #8F28AA
triadic
#4E28AA #AA4E28 #28AA4E
tetradic
#4E28AA #AA2843 #84AA28 #28AA8F
square
#4E28AA #AA2843 #84AA28 #28AA8F
split-complementary
#4E28AA #AA8F28 #43AA28
monochromatic
#211147 #371C78 #4E28AA #693ED2 #8F6FDD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E28AA#FFFFFF#000000##FFFFFF
##4E28AA1.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)
#0048AE
Deuteranopia (green-blind)
#0042A8
Tritanopia (blue-blind)
#294C68
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e28aa;
/* rgb */ color: rgb(78, 40, 170);
/* oklch */ color: oklch(41.4% 0.191 288.4);
Tailwind
colors: {
  custom: {
    50: '#8a66c4',
    500: '#4e28aa',
    950: '#000000',
  },
}
SCSS
$custom: #4e28aa;
$custom-light: #8a66c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e28aa",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 257.538,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41415,
    "c": 0.19118,
    "h": 288.4
  },
  "luminance": 0.0604
}

Semantic roles & 50–950 ramp

primary
#4E28AA
secondary
#AAC46A
accent
#E543B6
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E28AA

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

Preview Lab → · Contrast checker → · Palette generator →

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