#4E2784#4E2784

#4E2784 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.148 H 298.2°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#4E2784
RGBrgb(78, 39, 132)
HSLhsl(265, 54%, 34%)
HSVhsv(265, 70%, 52%)
CMYKcmyk(40.9%, 70.5%, 0%, 48.2%)
CIE-LABlab(25.97, 38.50, -45.56)
CIE-LCHlch(25.97, 59.64, 310.20°)
OKLaboklab(37.88% 0.0698 -0.13)
OKLCHoklch(37.88% 0.148 298.2)
XYZxyz(8.0312, 4.7366, 22.3164)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2784 #5D8427
analogous
#272E84 #4E2784 #7C2784
triadic
#4E2784 #844E27 #27844E
tetradic
#4E2784 #84272E #5D8427 #27847C
square
#4E2784 #84272E #5D8427 #27847C
split-complementary
#4E2784 #847C27 #2E8427
monochromatic
#160B26 #321955 #4E2784 #6A35B3 #8958CE

Accessibility & contrast

On white

10.78
#4E2784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4E2784 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2784
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2784#FFFFFF#000000##FFFFFF
##4E27841.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2784;
/* rgb */ color: rgb(78, 39, 132);
/* oklch */ color: oklch(37.9% 0.148 298.2);
Tailwind
colors: {
  custom: {
    50: '#8464a8',
    500: '#4e2784',
    950: '#000000',
  },
}
SCSS
$custom: #4e2784;
$custom-light: #8464a8;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2784",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 132
  },
  "hsl": {
    "h": 265.161,
    "s": 54.386,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37875,
    "c": 0.14753,
    "h": 298.2
  },
  "luminance": 0.04737
}

Semantic roles & 50–950 ramp

primary
#4E2784
secondary
#8BB254
accent
#DE4AA0
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4E2784

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

Preview Lab → · Contrast checker → · Palette generator →

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