#4E28BA#4E28BA

#4E28BA is a dark, highly saturated violet. Relative luminance 0.067; OKLCH L 43.0% C 0.209 H 285.4°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#4E28BA
RGBrgb(78, 40, 186)
HSLhsl(256, 65%, 44%)
HSVhsv(256, 78%, 73%)
CMYKcmyk(58.1%, 78.5%, 0%, 27.1%)
CIE-LABlab(31.07, 53.13, -70.06)
CIE-LCHlch(31.07, 87.93, 307.18°)
OKLaboklab(42.98% 0.0557 -0.2018)
OKLCHoklch(42.98% 0.209 285.4)
XYZxyz(12.7609, 6.6817, 47.0621)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E28BA #94BA28
analogous
#284BBA #4E28BA #9728BA
triadic
#4E28BA #BA4E28 #28BA4E
tetradic
#4E28BA #BA284B #94BA28 #28BA97
square
#4E28BA #BA284B #94BA28 #28BA97
split-complementary
#4E28BA #BA9728 #4BBA28
monochromatic
#241255 #391D88 #4E28BA #6D48D8 #957AE2

Accessibility & contrast

On white

8.99
#4E28BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#4E28BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E28BA
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E28BA#FFFFFF#000000##FFFFFF
##4E28BA1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBE
Deuteranopia (green-blind)
#0045B7
Tritanopia (blue-blind)
#125371
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e28ba;
/* rgb */ color: rgb(78, 40, 186);
/* oklch */ color: oklch(43.0% 0.209 285.4);
Tailwind
colors: {
  custom: {
    50: '#8c67d0',
    500: '#4e28ba',
    950: '#000000',
  },
}
SCSS
$custom: #4e28ba;
$custom-light: #8c67d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e28ba",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 186
  },
  "hsl": {
    "h": 255.616,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42976,
    "c": 0.20936,
    "h": 285.4
  },
  "luminance": 0.06682
}

Semantic roles & 50–950 ramp

primary
#4E28BA
secondary
#B4CA73
accent
#E840BC
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0614
muted
#7E7A82

Preview Lab

Preview with #4E28BA

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

Preview Lab → · Contrast checker → · Palette generator →

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