#4E28A8#4E28A8

#4E28A8 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.189 H 288.8°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#4E28A8
RGBrgb(78, 40, 168)
HSLhsl(258, 62%, 41%)
HSVhsv(258, 76%, 66%)
CMYKcmyk(53.6%, 76.2%, 0%, 34.1%)
CIE-LABlab(29.32, 48.06, -62.19)
CIE-LCHlch(29.32, 78.60, 307.70°)
OKLaboklab(41.23% 0.0608 -0.1788)
OKLCHoklch(41.23% 0.189 288.8)
XYZxyz(10.9665, 5.9639, 37.6115)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E28A8 #82A828
analogous
#2842A8 #4E28A8 #8E28A8
triadic
#4E28A8 #A84E28 #28A84E
tetradic
#4E28A8 #A82842 #82A828 #28A88E
square
#4E28A8 #A82842 #82A828 #28A88E
split-complementary
#4E28A8 #A88E28 #42A828
monochromatic
#201045 #371C77 #4E28A8 #693DD1 #8F6EDC

Accessibility & contrast

On white

9.58
#4E28A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E28A8
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E28A8#FFFFFF#000000##FFFFFF
##4E28A81.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AC
Deuteranopia (green-blind)
#0042A6
Tritanopia (blue-blind)
#2B4C66
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e28a8;
/* rgb */ color: rgb(78, 40, 168);
/* oklch */ color: oklch(41.2% 0.189 288.8);
Tailwind
colors: {
  custom: {
    50: '#8966c3',
    500: '#4e28a8',
    950: '#000000',
  },
}
SCSS
$custom: #4e28a8;
$custom-light: #8966c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e28a8",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 257.813,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41225,
    "c": 0.18888,
    "h": 288.8
  },
  "luminance": 0.05964
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E28A8

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

Preview Lab → · Contrast checker → · Palette generator →

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