#4E2879#4E2879

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

Color values

HEX#4E2879
RGBrgb(78, 40, 121)
HSLhsl(268, 50%, 32%)
HSVhsv(268, 67%, 47%)
CMYKcmyk(35.5%, 66.9%, 0%, 52.5%)
CIE-LABlab(25.31, 34.95, -39.68)
CIE-LCHlch(25.31, 52.88, 311.37°)
OKLaboklab(37.13% 0.07 -0.1127)
OKLCHoklch(37.13% 0.133 301.8)
XYZxyz(7.3511, 4.5177, 18.5702)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2879 #537928
analogous
#282B79 #4E2879 #772879
triadic
#4E2879 #794E28 #28794E
tetradic
#4E2879 #79282B #537928 #287977
square
#4E2879 #79282B #537928 #287977
split-complementary
#4E2879 #797728 #2B7928
monochromatic
#130A1D #30194B #4E2879 #6C37A7 #8A55C7

Accessibility & contrast

On white

11.03
#4E2879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2879
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2879#FFFFFF#000000##FFFFFF
##4E28791.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7C
Deuteranopia (green-blind)
#093C77
Tritanopia (blue-blind)
#453A4C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4e2879;
/* rgb */ color: rgb(78, 40, 121);
/* oklch */ color: oklch(37.1% 0.133 301.8);
Tailwind
colors: {
  custom: {
    50: '#8364a0',
    500: '#4e2879',
    950: '#000000',
  },
}
SCSS
$custom: #4e2879;
$custom-light: #8364a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2879",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 121
  },
  "hsl": {
    "h": 268.148,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37133,
    "c": 0.13268,
    "h": 301.8
  },
  "luminance": 0.04518
}

Semantic roles & 50–950 ramp

primary
#4E2879
secondary
#81AB52
accent
#DA4E98
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060F
muted
#7C7A7E

Preview Lab

Preview with #4E2879

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

Preview Lab → · Contrast checker → · Palette generator →

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