#4E1D78#4E1D78

#4E1D78 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.147 H 304.4°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#4E1D78
RGBrgb(78, 29, 120)
HSLhsl(272, 61%, 29%)
HSVhsv(272, 76%, 47%)
CMYKcmyk(35%, 75.8%, 0%, 52.9%)
CIE-LABlab(23.18, 40.39, -42.50)
CIE-LCHlch(23.18, 58.63, 313.55°)
OKLaboklab(35.59% 0.0828 -0.1209)
OKLCHoklch(35.59% 0.147 304.4)
XYZxyz(6.9706, 3.8545, 18.1424)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1D78 #47781D
analogous
#211D78 #4E1D78 #781D75
triadic
#4E1D78 #784E1D #1D784E
tetradic
#4E1D78 #78211D #47781D #1D7578
square
#4E1D78 #78211D #47781D #1D7578
split-complementary
#4E1D78 #75781D #1D7821
monochromatic
#100619 #2E1147 #4E1D78 #6E29A9 #8D3FD1

Accessibility & contrast

On white

11.86
#4E1D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4E1D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1D78
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1D78#FFFFFF#000000##FFFFFF
##4E1D781.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367B
Deuteranopia (green-blind)
#003776
Tritanopia (blue-blind)
#463349
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e1d78;
/* rgb */ color: rgb(78, 29, 120);
/* oklch */ color: oklch(35.6% 0.147 304.4);
Tailwind
colors: {
  custom: {
    50: '#845ea0',
    500: '#4e1d78',
    950: '#000000',
  },
}
SCSS
$custom: #4e1d78;
$custom-light: #845ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1d78",
  "rgb": {
    "r": 78,
    "g": 29,
    "b": 120
  },
  "hsl": {
    "h": 272.308,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35585,
    "c": 0.14655,
    "h": 304.4
  },
  "luminance": 0.03854
}

Semantic roles & 50–950 ramp

primary
#4E1D78
secondary
#74AC45
accent
#E4448E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4E1D78

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

Preview Lab → · Contrast checker → · Palette generator →

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