#4E2884#4E2884

#4E2884 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.0% C 0.146 H 298.0°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#4E2884
RGBrgb(78, 40, 132)
HSLhsl(265, 53%, 34%)
HSVhsv(265, 70%, 52%)
CMYKcmyk(40.9%, 69.7%, 0%, 48.2%)
CIE-LABlab(26.17, 37.96, -45.24)
CIE-LCHlch(26.17, 59.05, 310.00°)
OKLaboklab(38.02% 0.0686 -0.1291)
OKLCHoklch(38.02% 0.146 298)
XYZxyz(8.0645, 4.8031, 22.3275)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2884 #5E8428
analogous
#283084 #4E2884 #7C2884
triadic
#4E2884 #844E28 #28844E
tetradic
#4E2884 #842830 #5E8428 #28847C
square
#4E2884 #842830 #5E8428 #28847C
split-complementary
#4E2884 #847C28 #308428
monochromatic
#160C26 #321A55 #4E2884 #6A36B3 #895ACD

Accessibility & contrast

On white

10.71
#4E2884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4E2884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2884
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2884#FFFFFF#000000##FFFFFF
##4E28841.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E87
Deuteranopia (green-blind)
#003D82
Tritanopia (blue-blind)
#413E52
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e2884;
/* rgb */ color: rgb(78, 40, 132);
/* oklch */ color: oklch(38.0% 0.146 298.0);
Tailwind
colors: {
  custom: {
    50: '#8465a8',
    500: '#4e2884',
    950: '#000000',
  },
}
SCSS
$custom: #4e2884;
$custom-light: #8465a8;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2884",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 132
  },
  "hsl": {
    "h": 264.783,
    "s": 53.488,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38015,
    "c": 0.14618,
    "h": 298
  },
  "luminance": 0.04803
}

Semantic roles & 50–950 ramp

primary
#4E2884
secondary
#8CB256
accent
#DD4BA1
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2884

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

Preview Lab → · Contrast checker → · Palette generator →

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