#4E2557#4E2557

#4E2557 is a dark, moderate purple. Relative luminance 0.036; OKLCH L 34.3% C 0.096 H 320.2°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#4E2557
RGBrgb(78, 37, 87)
HSLhsl(289, 40%, 24%)
HSVhsv(289, 57%, 34%)
CMYKcmyk(10.3%, 57.5%, 0%, 65.9%)
CIE-LABlab(22.41, 28.10, -22.24)
CIE-LCHlch(22.41, 35.84, 321.63°)
OKLaboklab(34.29% 0.074 -0.0617)
OKLCHoklch(34.29% 0.096 320.2)
XYZxyz(5.5235, 3.6312, 9.4249)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2557 #2E5725
analogous
#352557 #4E2557 #572547
triadic
#4E2557 #574E25 #25574E
tetradic
#4E2557 #573525 #2E5725 #254757
square
#4E2557 #573525 #2E5725 #254757
split-complementary
#4E2557 #475725 #255735
monochromatic
#130915 #28132C #4E2557 #743782 #9B4AAD

Accessibility & contrast

On white

12.17
#4E2557 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4E2557 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2557
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2557#FFFFFF#000000##FFFFFF
##4E25571.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3359
Deuteranopia (green-blind)
#293756
Tritanopia (blue-blind)
#4F2C3A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e2557;
/* rgb */ color: rgb(78, 37, 87);
/* oklch */ color: oklch(34.3% 0.096 320.2);
Tailwind
colors: {
  custom: {
    50: '#816186',
    500: '#4e2557',
    950: '#000000',
  },
}
SCSS
$custom: #4e2557;
$custom-light: #816186;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2557",
  "rgb": {
    "r": 78,
    "g": 37,
    "b": 87
  },
  "hsl": {
    "h": 289.2,
    "s": 40.323,
    "l": 24.314
  },
  "oklch": {
    "l": 0.34291,
    "c": 0.09631,
    "h": 320.2
  },
  "luminance": 0.03631
}

Semantic roles & 50–950 ramp

primary
#4E2557
secondary
#588A4D
accent
#D0586D
background
#F8F5F8
surface
#EFEAEF
border
#CAC6CA
text
#0A050B
muted
#7C797C

Preview Lab

Preview with #4E2557

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

Preview Lab → · Contrast checker → · Palette generator →

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