#4E2778#4E2778

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

Color values

HEX#4E2778
RGBrgb(78, 39, 120)
HSLhsl(269, 51%, 31%)
HSVhsv(269, 68%, 47%)
CMYKcmyk(35%, 67.5%, 0%, 52.9%)
CIE-LABlab(25.04, 35.24, -39.50)
CIE-LCHlch(25.04, 52.93, 311.74°)
OKLaboklab(36.91% 0.0713 -0.1122)
OKLCHoklch(36.91% 0.133 302.4)
XYZxyz(7.2568, 4.4268, 18.2378)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2778 #517827
analogous
#272878 #4E2778 #762778
triadic
#4E2778 #784E27 #27784E
tetradic
#4E2778 #782728 #517827 #277876
square
#4E2778 #782728 #517827 #277876
split-complementary
#4E2778 #787627 #287827
monochromatic
#12091C #30184A #4E2778 #6C36A6 #8B52C7

Accessibility & contrast

On white

11.14
#4E2778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2778
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2778#FFFFFF#000000##FFFFFF
##4E27781.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7A
Deuteranopia (green-blind)
#093B76
Tritanopia (blue-blind)
#46394C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e2778;
/* rgb */ color: rgb(78, 39, 120);
/* oklch */ color: oklch(36.9% 0.133 302.4);
Tailwind
colors: {
  custom: {
    50: '#8364a0',
    500: '#4e2778',
    950: '#000000',
  },
}
SCSS
$custom: #4e2778;
$custom-light: #8364a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2778",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 120
  },
  "hsl": {
    "h": 268.889,
    "s": 50.943,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36908,
    "c": 0.13293,
    "h": 302.4
  },
  "luminance": 0.04427
}

Semantic roles & 50–950 ramp

primary
#4E2778
secondary
#7FAA51
accent
#DA4D97
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050F
muted
#7C7A7E

Preview Lab

Preview with #4E2778

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

Preview Lab → · Contrast checker → · Palette generator →

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