#4E2859#4E2859

#4E2859 is a dark, moderate purple. Relative luminance 0.039; OKLCH L 34.9% C 0.093 H 318.3°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#4E2859
RGBrgb(78, 40, 89)
HSLhsl(287, 38%, 25%)
HSVhsv(287, 55%, 35%)
CMYKcmyk(12.4%, 55.1%, 0%, 65.1%)
CIE-LABlab(23.20, 26.79, -22.33)
CIE-LCHlch(23.20, 34.88, 320.19°)
OKLaboklab(34.91% 0.0695 -0.062)
OKLCHoklch(34.91% 0.093 318.3)
XYZxyz(5.7036, 3.8588, 9.8936)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2859 #335928
analogous
#362859 #4E2859 #59284B
triadic
#4E2859 #594E28 #28594E
tetradic
#4E2859 #593628 #335928 #284B59
square
#4E2859 #593628 #335928 #284B59
split-complementary
#4E2859 #4B5928 #285936
monochromatic
#130915 #29152F #4E2859 #733B83 #984EAD

Accessibility & contrast

On white

11.85
#4E2859 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2859
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2859#FFFFFF#000000##FFFFFF
##4E28591.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F355B
Deuteranopia (green-blind)
#2A3958
Tritanopia (blue-blind)
#4E2F3C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e2859;
/* rgb */ color: rgb(78, 40, 89);
/* oklch */ color: oklch(34.9% 0.093 318.3);
Tailwind
colors: {
  custom: {
    50: '#816388',
    500: '#4e2859',
    950: '#000000',
  },
}
SCSS
$custom: #4e2859;
$custom-light: #816388;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2859",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 89
  },
  "hsl": {
    "h": 286.531,
    "s": 37.984,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34908,
    "c": 0.09309,
    "h": 318.3
  },
  "luminance": 0.03859
}

Semantic roles & 50–950 ramp

primary
#4E2859
secondary
#5E8C51
accent
#CE5A74
background
#F8F6F8
surface
#EFEBEF
border
#CAC6CA
text
#0A050B
muted
#7C7A7C

Preview Lab

Preview with #4E2859

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

Preview Lab → · Contrast checker → · Palette generator →

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