#4E1578#4E1578

#4E1578 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.156 H 305.5°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#4E1578
RGBrgb(78, 21, 120)
HSLhsl(275, 70%, 28%)
HSVhsv(275, 83%, 47%)
CMYKcmyk(35%, 82.5%, 0%, 52.9%)
CIE-LABlab(21.99, 43.82, -44.44)
CIE-LCHlch(21.99, 62.41, 314.60°)
OKLaboklab(34.74% 0.0903 -0.1266)
OKLCHoklch(34.74% 0.156 305.5)
XYZxyz(6.7995, 3.5121, 18.0854)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1578 #3F7815
analogous
#1C1578 #4E1578 #781571
triadic
#4E1578 #784E15 #15784E
tetradic
#4E1578 #781C15 #3F7815 #157178
square
#4E1578 #781C15 #3F7815 #157178
split-complementary
#4E1578 #717815 #15781C
monochromatic
#11051A #2C0C44 #4E1578 #701EAC #912DDA

Accessibility & contrast

On white

12.34
#4E1578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4E1578 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1578
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1578#FFFFFF#000000##FFFFFF
##4E15781.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#003576
Tritanopia (blue-blind)
#462F47
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e1578;
/* rgb */ color: rgb(78, 21, 120);
/* oklch */ color: oklch(34.7% 0.156 305.5);
Tailwind
colors: {
  custom: {
    50: '#845aa0',
    500: '#4e1578',
    950: '#000000',
  },
}
SCSS
$custom: #4e1578;
$custom-light: #845aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1578",
  "rgb": {
    "r": 78,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 274.545,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34745,
    "c": 0.15552,
    "h": 305.5
  },
  "luminance": 0.03512
}

Semantic roles & 50–950 ramp

primary
#4E1578
secondary
#6CAE3B
accent
#ED3B86
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4E1578

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

Preview Lab → · Contrast checker → · Palette generator →

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