#4E28A9#4E28A9

#4E28A9 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.190 H 288.6°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#4E28A9
RGBrgb(78, 40, 169)
HSLhsl(258, 62%, 41%)
HSVhsv(258, 76%, 66%)
CMYKcmyk(53.8%, 76.3%, 0%, 33.7%)
CIE-LABlab(29.42, 48.35, -62.64)
CIE-LCHlch(29.42, 79.13, 307.66°)
OKLaboklab(41.32% 0.0605 -0.1801)
OKLCHoklch(41.32% 0.19 288.6)
XYZxyz(11.0600, 6.0013, 38.1040)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E28A9 #83A928
analogous
#2843A9 #4E28A9 #8E28A9
triadic
#4E28A9 #A94E28 #28A94E
tetradic
#4E28A9 #A92843 #83A928 #28A98E
square
#4E28A9 #A92843 #83A928 #28A98E
split-complementary
#4E28A9 #A98E28 #43A928
monochromatic
#201146 #371C78 #4E28A9 #693DD1 #8F6FDD

Accessibility & contrast

On white

9.54
#4E28A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#4E28A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E28A9
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E28A9#FFFFFF#000000##FFFFFF
##4E28A91.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AD
Deuteranopia (green-blind)
#0042A7
Tritanopia (blue-blind)
#2A4C67
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e28a9;
/* rgb */ color: rgb(78, 40, 169);
/* oklch */ color: oklch(41.3% 0.190 288.6);
Tailwind
colors: {
  custom: {
    50: '#8a66c4',
    500: '#4e28a9',
    950: '#000000',
  },
}
SCSS
$custom: #4e28a9;
$custom-light: #8a66c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e28a9",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 169
  },
  "hsl": {
    "h": 257.674,
    "s": 61.722,
    "l": 40.98
  },
  "oklch": {
    "l": 0.4132,
    "c": 0.19003,
    "h": 288.6
  },
  "luminance": 0.06002
}

Semantic roles & 50–950 ramp

primary
#4E28A9
secondary
#A9C469
accent
#E543B5
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4E28A9

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

Preview Lab → · Contrast checker → · Palette generator →

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