#4E2772#4E2772

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

Color values

HEX#4E2772
RGBrgb(78, 39, 114)
HSLhsl(271, 49%, 30%)
HSVhsv(271, 66%, 45%)
CMYKcmyk(31.6%, 65.8%, 0%, 55.3%)
CIE-LABlab(24.59, 33.65, -36.38)
CIE-LCHlch(24.59, 49.55, 312.76°)
OKLaboklab(36.45% 0.0718 -0.103)
OKLCHoklch(36.45% 0.126 304.9)
XYZxyz(6.9040, 4.2857, 16.3798)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2772 #4B7227
analogous
#282772 #4E2772 #722771
triadic
#4E2772 #724E27 #27724E
tetradic
#4E2772 #722827 #4B7227 #277172
square
#4E2772 #722827 #4B7227 #277172
split-complementary
#4E2772 #717227 #277228
monochromatic
#100817 #2F1744 #4E2772 #6D37A0 #8C50C3

Accessibility & contrast

On white

11.31
#4E2772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4E2772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2772
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2772#FFFFFF#000000##FFFFFF
##4E27721.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003974
Deuteranopia (green-blind)
#143A70
Tritanopia (blue-blind)
#483748
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e2772;
/* rgb */ color: rgb(78, 39, 114);
/* oklch */ color: oklch(36.4% 0.126 304.9);
Tailwind
colors: {
  custom: {
    50: '#83649b',
    500: '#4e2772',
    950: '#000000',
  },
}
SCSS
$custom: #4e2772;
$custom-light: #83649b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2772",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 114
  },
  "hsl": {
    "h": 271.2,
    "s": 49.02,
    "l": 30
  },
  "oklch": {
    "l": 0.36449,
    "c": 0.12556,
    "h": 304.9
  },
  "luminance": 0.04286
}

Semantic roles & 50–950 ramp

primary
#4E2772
secondary
#79A450
accent
#D94F91
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #4E2772

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

Preview Lab → · Contrast checker → · Palette generator →

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