#4E2771#4E2771

#4E2771 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.4% C 0.124 H 305.3°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#4E2771
RGBrgb(78, 39, 113)
HSLhsl(272, 49%, 30%)
HSVhsv(272, 65%, 44%)
CMYKcmyk(31%, 65.5%, 0%, 55.7%)
CIE-LABlab(24.52, 33.38, -35.85)
CIE-LCHlch(24.52, 48.99, 312.96°)
OKLaboklab(36.37% 0.0718 -0.1015)
OKLCHoklch(36.37% 0.124 305.3)
XYZxyz(6.8474, 4.2630, 16.0817)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2771 #4A7127
analogous
#292771 #4E2771 #71276F
triadic
#4E2771 #714E27 #27714E
tetradic
#4E2771 #712927 #4A7127 #276F71
square
#4E2771 #712927 #4A7127 #276F71
split-complementary
#4E2771 #6F7127 #277129
monochromatic
#100817 #2F1744 #4E2771 #6D379E #8C50C3

Accessibility & contrast

On white

11.34
#4E2771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4E2771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2771
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2771#FFFFFF#000000##FFFFFF
##4E27711.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003973
Deuteranopia (green-blind)
#163A6F
Tritanopia (blue-blind)
#483648
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e2771;
/* rgb */ color: rgb(78, 39, 113);
/* oklch */ color: oklch(36.4% 0.124 305.3);
Tailwind
colors: {
  custom: {
    50: '#83639a',
    500: '#4e2771',
    950: '#000000',
  },
}
SCSS
$custom: #4e2771;
$custom-light: #83639a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2771",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 271.622,
    "s": 48.684,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36374,
    "c": 0.12432,
    "h": 305.3
  },
  "luminance": 0.04263
}

Semantic roles & 50–950 ramp

primary
#4E2771
secondary
#78A350
accent
#D85090
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #4E2771

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

Preview Lab → · Contrast checker → · Palette generator →

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