#4E2577#4E2577

#4E2577 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.5% C 0.135 H 303.3°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#4E2577
RGBrgb(78, 37, 119)
HSLhsl(270, 53%, 31%)
HSVhsv(270, 69%, 47%)
CMYKcmyk(34.5%, 68.9%, 0%, 53.3%)
CIE-LABlab(24.56, 36.07, -39.63)
CIE-LCHlch(24.56, 53.59, 312.31°)
OKLaboklab(36.54% 0.0739 -0.1126)
OKLCHoklch(36.54% 0.135 303.3)
XYZxyz(7.1325, 4.2748, 17.8985)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2577 #4E7725
analogous
#252577 #4E2577 #772577
triadic
#4E2577 #774E25 #25774E
tetradic
#4E2577 #772525 #4E7725 #257777
square
#4E2577 #772525 #4E7725 #257777
split-complementary
#4E2577 #777725 #257725
monochromatic
#11081A #2F1648 #4E2577 #6D34A6 #8B4EC8

Accessibility & contrast

On white

11.32
#4E2577 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2577
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2577#FFFFFF#000000##FFFFFF
##4E25771.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003979
Deuteranopia (green-blind)
#063A75
Tritanopia (blue-blind)
#46374A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4e2577;
/* rgb */ color: rgb(78, 37, 119);
/* oklch */ color: oklch(36.5% 0.135 303.3);
Tailwind
colors: {
  custom: {
    50: '#83629f',
    500: '#4e2577',
    950: '#000000',
  },
}
SCSS
$custom: #4e2577;
$custom-light: #83629f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2577",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 119
  },
  "hsl": {
    "h": 270,
    "s": 52.564,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36541,
    "c": 0.13463,
    "h": 303.3
  },
  "luminance": 0.04275
}

Semantic roles & 50–950 ramp

primary
#4E2577
secondary
#7CA94E
accent
#DC4C94
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #4E2577

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

Preview Lab → · Contrast checker → · Palette generator →

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