#4E28AB#4E28AB

#4E28AB is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.5% C 0.192 H 288.2°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#4E28AB
RGBrgb(78, 40, 171)
HSLhsl(257, 62%, 41%)
HSVhsv(257, 77%, 67%)
CMYKcmyk(54.4%, 76.6%, 0%, 32.9%)
CIE-LABlab(29.61, 48.91, -63.53)
CIE-LCHlch(29.61, 80.17, 307.59°)
OKLaboklab(41.51% 0.06 -0.1827)
OKLCHoklch(41.51% 0.192 288.2)
XYZxyz(11.2492, 6.0770, 39.1004)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E28AB #85AB28
analogous
#2844AB #4E28AB #9028AB
triadic
#4E28AB #AB4E28 #28AB4E
tetradic
#4E28AB #AB2844 #85AB28 #28AB90
square
#4E28AB #AB2844 #85AB28 #28AB90
split-complementary
#4E28AB #AB9028 #44AB28
monochromatic
#211148 #371C79 #4E28AB #693ED2 #9070DE

Accessibility & contrast

On white

9.48
#4E28AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4E28AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E28AB
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E28AB#FFFFFF#000000##FFFFFF
##4E28AB1.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AF
Deuteranopia (green-blind)
#0042A9
Tritanopia (blue-blind)
#284D68
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e28ab;
/* rgb */ color: rgb(78, 40, 171);
/* oklch */ color: oklch(41.5% 0.192 288.2);
Tailwind
colors: {
  custom: {
    50: '#8a67c5',
    500: '#4e28ab',
    950: '#000000',
  },
}
SCSS
$custom: #4e28ab;
$custom-light: #8a67c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e28ab",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 257.405,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41511,
    "c": 0.19233,
    "h": 288.2
  },
  "luminance": 0.06078
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E28AB

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

Preview Lab → · Contrast checker → · Palette generator →

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