#4E2578#4E2578

#4E2578 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.6% C 0.136 H 302.9°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#4E2578
RGBrgb(78, 37, 120)
HSLhsl(270, 53%, 31%)
HSVhsv(270, 69%, 47%)
CMYKcmyk(35%, 69.2%, 0%, 52.9%)
CIE-LABlab(24.64, 36.34, -40.14)
CIE-LCHlch(24.64, 54.14, 312.15°)
OKLaboklab(36.62% 0.0738 -0.1141)
OKLCHoklch(36.62% 0.136 302.9)
XYZxyz(7.1928, 4.2989, 18.2165)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2578 #4F7825
analogous
#252578 #4E2578 #772578
triadic
#4E2578 #784E25 #25784E
tetradic
#4E2578 #782525 #4F7825 #257877
square
#4E2578 #782525 #4F7825 #257877
split-complementary
#4E2578 #787725 #257825
monochromatic
#11081A #301749 #4E2578 #6C33A7 #8B4FC9

Accessibility & contrast

On white

11.29
#4E2578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4E2578 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2578
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2578#FFFFFF#000000##FFFFFF
##4E25781.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7B
Deuteranopia (green-blind)
#043A76
Tritanopia (blue-blind)
#46384B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e2578;
/* rgb */ color: rgb(78, 37, 120);
/* oklch */ color: oklch(36.6% 0.136 302.9);
Tailwind
colors: {
  custom: {
    50: '#8363a0',
    500: '#4e2578',
    950: '#000000',
  },
}
SCSS
$custom: #4e2578;
$custom-light: #8363a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2578",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 120
  },
  "hsl": {
    "h": 269.639,
    "s": 52.866,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3662,
    "c": 0.13583,
    "h": 302.9
  },
  "luminance": 0.04299
}

Semantic roles & 50–950 ramp

primary
#4E2578
secondary
#7DAA4E
accent
#DC4C95
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050F
muted
#7C7A7E

Preview Lab

Preview with #4E2578

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

Preview Lab → · Contrast checker → · Palette generator →

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