#4E2774#4E2774

#4E2774 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.6% C 0.128 H 304.0°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#4E2774
RGBrgb(78, 39, 116)
HSLhsl(270, 50%, 30%)
HSVhsv(270, 66%, 45%)
CMYKcmyk(32.8%, 66.4%, 0%, 54.5%)
CIE-LABlab(24.74, 34.17, -37.42)
CIE-LCHlch(24.74, 50.68, 312.40°)
OKLaboklab(36.6% 0.0717 -0.1061)
OKLCHoklch(36.6% 0.128 304)
XYZxyz(7.0191, 4.3317, 16.9859)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2774 #4D7427
analogous
#282774 #4E2774 #742773
triadic
#4E2774 #744E27 #27744E
tetradic
#4E2774 #742827 #4D7427 #277374
square
#4E2774 #742827 #4D7427 #277374
split-complementary
#4E2774 #737427 #277428
monochromatic
#100818 #2F1846 #4E2774 #6D36A2 #8B51C4

Accessibility & contrast

On white

11.25
#4E2774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4E2774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2774
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2774#FFFFFF#000000##FFFFFF
##4E27741.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A76
Deuteranopia (green-blind)
#113B72
Tritanopia (blue-blind)
#473749
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e2774;
/* rgb */ color: rgb(78, 39, 116);
/* oklch */ color: oklch(36.6% 0.128 304.0);
Tailwind
colors: {
  custom: {
    50: '#83649c',
    500: '#4e2774',
    950: '#000000',
  },
}
SCSS
$custom: #4e2774;
$custom-light: #83649c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2774",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 116
  },
  "hsl": {
    "h": 270.39,
    "s": 49.677,
    "l": 30.392
  },
  "oklch": {
    "l": 0.366,
    "c": 0.12802,
    "h": 304
  },
  "luminance": 0.04332
}

Semantic roles & 50–950 ramp

primary
#4E2774
secondary
#7BA650
accent
#D94F93
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #4E2774

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

Preview Lab → · Contrast checker → · Palette generator →

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