#4E28A7#4E28A7

#4E28A7 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.188 H 289.0°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#4E28A7
RGBrgb(78, 40, 167)
HSLhsl(258, 61%, 41%)
HSVhsv(258, 76%, 65%)
CMYKcmyk(53.3%, 76%, 0%, 34.5%)
CIE-LABlab(29.23, 47.78, -61.74)
CIE-LCHlch(29.23, 78.07, 307.74°)
OKLaboklab(41.13% 0.0611 -0.1775)
OKLCHoklch(41.13% 0.188 289)
XYZxyz(10.8737, 5.9268, 37.1228)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E28A7 #81A728
analogous
#2841A7 #4E28A7 #8D28A7
triadic
#4E28A7 #A74E28 #28A74E
tetradic
#4E28A7 #A72841 #81A728 #28A78D
square
#4E28A7 #A72841 #81A728 #28A78D
split-complementary
#4E28A7 #A78D28 #41A728
monochromatic
#201044 #371C76 #4E28A7 #683CD0 #8E6DDC

Accessibility & contrast

On white

9.61
#4E28A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4E28A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E28A7
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E28A7#FFFFFF#000000##FFFFFF
##4E28A71.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AB
Deuteranopia (green-blind)
#0042A5
Tritanopia (blue-blind)
#2C4B66
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e28a7;
/* rgb */ color: rgb(78, 40, 167);
/* oklch */ color: oklch(41.1% 0.188 289.0);
Tailwind
colors: {
  custom: {
    50: '#8966c2',
    500: '#4e28a7',
    950: '#000000',
  },
}
SCSS
$custom: #4e28a7;
$custom-light: #8966c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e28a7",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 167
  },
  "hsl": {
    "h": 257.953,
    "s": 61.353,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4113,
    "c": 0.18772,
    "h": 289
  },
  "luminance": 0.05927
}

Semantic roles & 50–950 ramp

primary
#4E28A7
secondary
#A8C368
accent
#E443B4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4E28A7

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

Preview Lab → · Contrast checker → · Palette generator →

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