#4E2478#4E2478

#4E2478 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.137 H 303.1°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#4E2478
RGBrgb(78, 36, 120)
HSLhsl(270, 54%, 31%)
HSVhsv(270, 70%, 47%)
CMYKcmyk(35%, 70%, 0%, 52.9%)
CIE-LABlab(24.44, 36.87, -40.46)
CIE-LCHlch(24.44, 54.74, 312.35°)
OKLaboklab(36.48% 0.075 -0.115)
OKLCHoklch(36.48% 0.137 303.1)
XYZxyz(7.1621, 4.2375, 18.2063)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2478 #4E7824
analogous
#242478 #4E2478 #782478
triadic
#4E2478 #784E24 #24784E
tetradic
#4E2478 #782424 #4E7824 #247878
square
#4E2478 #782424 #4E7824 #247878
split-complementary
#4E2478 #787824 #247824
monochromatic
#11081A #2F1649 #4E2478 #6D32A7 #8B4DCA

Accessibility & contrast

On white

11.37
#4E2478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4E2478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2478
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2478#FFFFFF#000000##FFFFFF
##4E24781.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397B
Deuteranopia (green-blind)
#013A76
Tritanopia (blue-blind)
#46374B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e2478;
/* rgb */ color: rgb(78, 36, 120);
/* oklch */ color: oklch(36.5% 0.137 303.1);
Tailwind
colors: {
  custom: {
    50: '#8362a0',
    500: '#4e2478',
    950: '#000000',
  },
}
SCSS
$custom: #4e2478;
$custom-light: #8362a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2478",
  "rgb": {
    "r": 78,
    "g": 36,
    "b": 120
  },
  "hsl": {
    "h": 270,
    "s": 53.846,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36481,
    "c": 0.13726,
    "h": 303.1
  },
  "luminance": 0.04238
}

Semantic roles & 50–950 ramp

primary
#4E2478
secondary
#7CAB4D
accent
#DD4B94
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4E2478

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

Preview Lab → · Contrast checker → · Palette generator →

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