#4E2858#4E2858

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

Color values

HEX#4E2858
RGBrgb(78, 40, 88)
HSLhsl(288, 38%, 25%)
HSVhsv(288, 55%, 35%)
CMYKcmyk(11.4%, 54.5%, 0%, 65.5%)
CIE-LABlab(23.14, 26.56, -21.76)
CIE-LCHlch(23.14, 34.33, 320.67°)
OKLaboklab(34.85% 0.0693 -0.0603)
OKLCHoklch(34.85% 0.092 319)
XYZxyz(5.6619, 3.8421, 9.6740)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2858 #325828
analogous
#362858 #4E2858 #58284A
triadic
#4E2858 #584E28 #28584E
tetradic
#4E2858 #583628 #325828 #284A58
square
#4E2858 #583628 #325828 #284A58
split-complementary
#4E2858 #4A5828 #285836
monochromatic
#130A15 #29152E #4E2858 #733B82 #994EAC

Accessibility & contrast

On white

11.88
#4E2858 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2858
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2858#FFFFFF#000000##FFFFFF
##4E28581.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2858;
/* rgb */ color: rgb(78, 40, 88);
/* oklch */ color: oklch(34.8% 0.092 319.0);
Tailwind
colors: {
  custom: {
    50: '#816387',
    500: '#4e2858',
    950: '#000000',
  },
}
SCSS
$custom: #4e2858;
$custom-light: #816387;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2858",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 88
  },
  "hsl": {
    "h": 287.5,
    "s": 37.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.34848,
    "c": 0.09189,
    "h": 319
  },
  "luminance": 0.03842
}

Semantic roles & 50–950 ramp

primary
#4E2858
secondary
#5D8B51
accent
#CD5A72
background
#F8F6F8
surface
#EFEBEF
border
#CAC6CA
text
#0A050B
muted
#7C7A7C

Preview Lab

Preview with #4E2858

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

Preview Lab → · Contrast checker → · Palette generator →

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