#4E2877#4E2877

#4E2877 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.0% C 0.130 H 302.6°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#4E2877
RGBrgb(78, 40, 119)
HSLhsl(269, 50%, 31%)
HSVhsv(269, 66%, 47%)
CMYKcmyk(34.5%, 66.4%, 0%, 53.3%)
CIE-LABlab(25.17, 34.41, -38.65)
CIE-LCHlch(25.17, 51.75, 311.68°)
OKLaboklab(36.98% 0.0701 -0.1097)
OKLCHoklch(36.98% 0.13 302.6)
XYZxyz(7.2297, 4.4692, 17.9309)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2877 #517728
analogous
#282977 #4E2877 #752877
triadic
#4E2877 #774E28 #28774E
tetradic
#4E2877 #772829 #517728 #287775
square
#4E2877 #772829 #517728 #287775
split-complementary
#4E2877 #777528 #297728
monochromatic
#12091B #301949 #4E2877 #6C37A5 #8B54C5

Accessibility & contrast

On white

11.09
#4E2877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4E2877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2877
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2877#FFFFFF#000000##FFFFFF
##4E28771.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B79
Deuteranopia (green-blind)
#0D3B75
Tritanopia (blue-blind)
#46394B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4e2877;
/* rgb */ color: rgb(78, 40, 119);
/* oklch */ color: oklch(37.0% 0.130 302.6);
Tailwind
colors: {
  custom: {
    50: '#83649f',
    500: '#4e2877',
    950: '#000000',
  },
}
SCSS
$custom: #4e2877;
$custom-light: #83649f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2877",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 119
  },
  "hsl": {
    "h": 268.861,
    "s": 49.686,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36978,
    "c": 0.1302,
    "h": 302.6
  },
  "luminance": 0.04469
}

Semantic roles & 50–950 ramp

primary
#4E2877
secondary
#7FA952
accent
#D94F97
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #4E2877

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

Preview Lab → · Contrast checker → · Palette generator →

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