#4E1574#4E1574

#4E1574 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.151 H 307.1°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#4E1574
RGBrgb(78, 21, 116)
HSLhsl(276, 69%, 27%)
HSVhsv(276, 82%, 45%)
CMYKcmyk(32.8%, 81.9%, 0%, 54.5%)
CIE-LABlab(21.64, 42.86, -42.44)
CIE-LCHlch(21.64, 60.32, 315.28°)
OKLaboklab(34.39% 0.0914 -0.1207)
OKLCHoklch(34.39% 0.151 307.1)
XYZxyz(6.5618, 3.4171, 16.8335)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1574 #3B7415
analogous
#1F1574 #4E1574 #74156B
triadic
#4E1574 #744E15 #15744E
tetradic
#4E1574 #741F15 #3B7415 #156B74
square
#4E1574 #741F15 #3B7415 #156B74
split-complementary
#4E1574 #6B7415 #15741F
monochromatic
#11051A #2B0C40 #4E1574 #711EA8 #932BD9

Accessibility & contrast

On white

12.47
#4E1574 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4E1574 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1574
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1574#FFFFFF#000000##FFFFFF
##4E15741.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#003472
Tritanopia (blue-blind)
#472E44
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e1574;
/* rgb */ color: rgb(78, 21, 116);
/* oklch */ color: oklch(34.4% 0.151 307.1);
Tailwind
colors: {
  custom: {
    50: '#845a9d',
    500: '#4e1574',
    950: '#000000',
  },
}
SCSS
$custom: #4e1574;
$custom-light: #845a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1574",
  "rgb": {
    "r": 78,
    "g": 21,
    "b": 116
  },
  "hsl": {
    "h": 276,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34395,
    "c": 0.15143,
    "h": 307.1
  },
  "luminance": 0.03417
}

Semantic roles & 50–950 ramp

primary
#4E1574
secondary
#67AA3B
accent
#EC3C82
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1574

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

Preview Lab → · Contrast checker → · Palette generator →

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