#4E2878#4E2878

#4E2878 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.1% C 0.131 H 302.2°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#4E2878
RGBrgb(78, 40, 120)
HSLhsl(269, 50%, 31%)
HSVhsv(269, 67%, 47%)
CMYKcmyk(35%, 66.7%, 0%, 52.9%)
CIE-LABlab(25.24, 34.68, -39.17)
CIE-LCHlch(25.24, 52.32, 311.52°)
OKLaboklab(37.06% 0.0701 -0.1112)
OKLCHoklch(37.06% 0.131 302.2)
XYZxyz(7.2900, 4.4933, 18.2489)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2878 #527828
analogous
#282A78 #4E2878 #762878
triadic
#4E2878 #784E28 #28784E
tetradic
#4E2878 #78282A #527828 #287876
square
#4E2878 #78282A #527828 #287876
split-complementary
#4E2878 #787628 #2A7828
monochromatic
#12091C #30194A #4E2878 #6C37A6 #8A54C6

Accessibility & contrast

On white

11.06
#4E2878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4E2878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2878
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2878#FFFFFF#000000##FFFFFF
##4E28781.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7A
Deuteranopia (green-blind)
#0B3C76
Tritanopia (blue-blind)
#46394C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4e2878;
/* rgb */ color: rgb(78, 40, 120);
/* oklch */ color: oklch(37.1% 0.131 302.2);
Tailwind
colors: {
  custom: {
    50: '#83649f',
    500: '#4e2878',
    950: '#000000',
  },
}
SCSS
$custom: #4e2878;
$custom-light: #83649f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2878",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 120
  },
  "hsl": {
    "h": 268.5,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37055,
    "c": 0.13144,
    "h": 302.2
  },
  "luminance": 0.04493
}

Semantic roles & 50–950 ramp

primary
#4E2878
secondary
#80AA52
accent
#DA4E97
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050F
muted
#7C7A7E

Preview Lab

Preview with #4E2878

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

Preview Lab → · Contrast checker → · Palette generator →

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