#4E28B9#4E28B9

#4E28B9 is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 42.9% C 0.208 H 285.6°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#4E28B9
RGBrgb(78, 40, 185)
HSLhsl(256, 64%, 44%)
HSVhsv(256, 78%, 73%)
CMYKcmyk(57.8%, 78.4%, 0%, 27.5%)
CIE-LABlab(30.97, 52.85, -69.63)
CIE-LCHlch(30.97, 87.42, 307.20°)
OKLaboklab(42.88% 0.056 -0.2006)
OKLCHoklch(42.88% 0.208 285.6)
XYZxyz(12.6550, 6.6393, 46.5042)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E28B9 #93B928
analogous
#284BB9 #4E28B9 #9728B9
triadic
#4E28B9 #B94E28 #28B94E
tetradic
#4E28B9 #B9284B #93B928 #28B997
square
#4E28B9 #B9284B #93B928 #28B997
split-complementary
#4E28B9 #B99728 #4BB928
monochromatic
#241254 #391D87 #4E28B9 #6D47D7 #9579E2

Accessibility & contrast

On white

9.02
#4E28B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#4E28B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E28B9
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E28B9#FFFFFF#000000##FFFFFF
##4E28B91.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBD
Deuteranopia (green-blind)
#0044B6
Tritanopia (blue-blind)
#155270
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e28b9;
/* rgb */ color: rgb(78, 40, 185);
/* oklch */ color: oklch(42.9% 0.208 285.6);
Tailwind
colors: {
  custom: {
    50: '#8c67cf',
    500: '#4e28b9',
    950: '#000000',
  },
}
SCSS
$custom: #4e28b9;
$custom-light: #8c67cf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e28b9",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 185
  },
  "hsl": {
    "h": 255.724,
    "s": 64.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42876,
    "c": 0.20824,
    "h": 285.6
  },
  "luminance": 0.0664
}

Semantic roles & 50–950 ramp

primary
#4E28B9
secondary
#B3CA73
accent
#E740BC
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4E28B9

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

Preview Lab → · Contrast checker → · Palette generator →

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