#4E2177#4E2177

#4E2177 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.140 H 304.1°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#4E2177
RGBrgb(78, 33, 119)
HSLhsl(271, 57%, 30%)
HSVhsv(271, 72%, 47%)
CMYKcmyk(34.5%, 72.3%, 0%, 53.3%)
CIE-LABlab(23.80, 38.18, -40.86)
CIE-LCHlch(23.80, 55.92, 313.06°)
OKLaboklab(36% 0.0786 -0.1161)
OKLCHoklch(36% 0.14 304.1)
XYZxyz(7.0148, 4.0393, 17.8593)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2177 #4A7721
analogous
#232177 #4E2177 #772175
triadic
#4E2177 #774E21 #21774E
tetradic
#4E2177 #772321 #4A7721 #217577
square
#4E2177 #772321 #4A7721 #217577
split-complementary
#4E2177 #757721 #217723
monochromatic
#100718 #2F1447 #4E2177 #6D2EA7 #8C47CC

Accessibility & contrast

On white

11.62
#4E2177 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4E2177 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2177
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2177#FFFFFF#000000##FFFFFF
##4E21771.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387A
Deuteranopia (green-blind)
#003975
Tritanopia (blue-blind)
#463549
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e2177;
/* rgb */ color: rgb(78, 33, 119);
/* oklch */ color: oklch(36.0% 0.140 304.1);
Tailwind
colors: {
  custom: {
    50: '#84609f',
    500: '#4e2177',
    950: '#000000',
  },
}
SCSS
$custom: #4e2177;
$custom-light: #84609f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2177",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 119
  },
  "hsl": {
    "h": 271.395,
    "s": 56.579,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35998,
    "c": 0.14023,
    "h": 304.1
  },
  "luminance": 0.04039
}

Semantic roles & 50–950 ramp

primary
#4E2177
secondary
#78AA4A
accent
#E04890
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4E2177

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

Preview Lab → · Contrast checker → · Palette generator →

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