#4E2857#4E2857

#4E2857 is a dark, moderate purple. Relative luminance 0.038; OKLCH L 34.8% C 0.091 H 319.7°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#4E2857
RGBrgb(78, 40, 87)
HSLhsl(289, 37%, 25%)
HSVhsv(289, 54%, 34%)
CMYKcmyk(10.3%, 54%, 0%, 65.9%)
CIE-LABlab(23.09, 26.32, -21.18)
CIE-LCHlch(23.09, 33.79, 321.18°)
OKLaboklab(34.79% 0.0692 -0.0587)
OKLCHoklch(34.79% 0.091 319.7)
XYZxyz(5.6208, 3.8256, 9.4573)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2857 #315728
analogous
#372857 #4E2857 #572848
triadic
#4E2857 #574E28 #28574E
tetradic
#4E2857 #573728 #315728 #284857
square
#4E2857 #573728 #315728 #284857
split-complementary
#4E2857 #485728 #285737
monochromatic
#130A15 #28152D #4E2857 #743B81 #994FAB

Accessibility & contrast

On white

11.90
#4E2857 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4E2857 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2857
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2857#FFFFFF#000000##FFFFFF
##4E28571.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#203459
Deuteranopia (green-blind)
#2B3856
Tritanopia (blue-blind)
#4E2E3B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e2857;
/* rgb */ color: rgb(78, 40, 87);
/* oklch */ color: oklch(34.8% 0.091 319.7);
Tailwind
colors: {
  custom: {
    50: '#816386',
    500: '#4e2857',
    950: '#000000',
  },
}
SCSS
$custom: #4e2857;
$custom-light: #816386;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2857",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 87
  },
  "hsl": {
    "h": 288.511,
    "s": 37.008,
    "l": 24.902
  },
  "oklch": {
    "l": 0.34788,
    "c": 0.09069,
    "h": 319.7
  },
  "luminance": 0.03825
}

Semantic roles & 50–950 ramp

primary
#4E2857
secondary
#5C8A51
accent
#CD5B71
background
#F8F6F8
surface
#EFEBEF
border
#CAC6CA
text
#0A050B
muted
#7C7A7C

Preview Lab

Preview with #4E2857

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

Preview Lab → · Contrast checker → · Palette generator →

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