#4E28A0#4E28A0

#4E28A0 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.180 H 290.5°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#4E28A0
RGBrgb(78, 40, 160)
HSLhsl(259, 60%, 39%)
HSVhsv(259, 75%, 63%)
CMYKcmyk(51.2%, 75%, 0%, 37.3%)
CIE-LABlab(28.58, 45.80, -58.57)
CIE-LCHlch(28.58, 74.36, 308.03°)
OKLaboklab(40.48% 0.0629 -0.1682)
OKLCHoklch(40.48% 0.18 290.5)
XYZxyz(10.2440, 5.6749, 33.8065)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E28A0 #7AA028
analogous
#283EA0 #4E28A0 #8A28A0
triadic
#4E28A0 #A04E28 #28A04E
tetradic
#4E28A0 #A0283E #7AA028 #28A08A
square
#4E28A0 #A0283E #7AA028 #28A08A
split-complementary
#4E28A0 #A08A28 #3EA028
monochromatic
#1E103E #361C6F #4E28A0 #6738CD #8D69D9

Accessibility & contrast

On white

9.84
#4E28A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4E28A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E28A0
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E28A0#FFFFFF#000000##FFFFFF
##4E28A01.009.842.149.84
#FFFFFF9.841.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A3
Deuteranopia (green-blind)
#00419E
Tritanopia (blue-blind)
#314862
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e28a0;
/* rgb */ color: rgb(78, 40, 160);
/* oklch */ color: oklch(40.5% 0.180 290.5);
Tailwind
colors: {
  custom: {
    50: '#8866bd',
    500: '#4e28a0',
    950: '#000000',
  },
}
SCSS
$custom: #4e28a0;
$custom-light: #8866bd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e28a0",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 160
  },
  "hsl": {
    "h": 259,
    "s": 60,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40475,
    "c": 0.1796,
    "h": 290.5
  },
  "luminance": 0.05675
}

Semantic roles & 50–950 ramp

primary
#4E28A0
secondary
#A3C064
accent
#E345B1
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E28A0

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

Preview Lab → · Contrast checker → · Palette generator →

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