#4E2876#4E2876

#4E2876 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.9% C 0.129 H 303.0°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#4E2876
RGBrgb(78, 40, 118)
HSLhsl(269, 49%, 31%)
HSVhsv(269, 66%, 46%)
CMYKcmyk(33.9%, 66.1%, 0%, 53.7%)
CIE-LABlab(25.09, 34.14, -38.13)
CIE-LCHlch(25.09, 51.18, 311.84°)
OKLaboklab(36.9% 0.0702 -0.1082)
OKLCHoklch(36.9% 0.129 303)
XYZxyz(7.1699, 4.4453, 17.6163)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2876 #507628
analogous
#282976 #4E2876 #752876
triadic
#4E2876 #764E28 #28764E
tetradic
#4E2876 #762829 #507628 #287675
square
#4E2876 #762829 #507628 #287675
split-complementary
#4E2876 #767528 #297628
monochromatic
#12091B #301948 #4E2876 #6C37A4 #8B54C5

Accessibility & contrast

On white

11.12
#4E2876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2876
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2876#FFFFFF#000000##FFFFFF
##4E28761.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B78
Deuteranopia (green-blind)
#0F3B74
Tritanopia (blue-blind)
#46394B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e2876;
/* rgb */ color: rgb(78, 40, 118);
/* oklch */ color: oklch(36.9% 0.129 303.0);
Tailwind
colors: {
  custom: {
    50: '#83649e',
    500: '#4e2876',
    950: '#000000',
  },
}
SCSS
$custom: #4e2876;
$custom-light: #83649e;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2876",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 118
  },
  "hsl": {
    "h": 269.231,
    "s": 49.367,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36902,
    "c": 0.12896,
    "h": 303
  },
  "luminance": 0.04445
}

Semantic roles & 50–950 ramp

primary
#4E2876
secondary
#7EA852
accent
#D94F96
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #4E2876

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

Preview Lab → · Contrast checker → · Palette generator →

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