#4E2758#4E2758

#4E2758 is a dark, moderate purple. Relative luminance 0.038; OKLCH L 34.7% C 0.094 H 319.1°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#4E2758
RGBrgb(78, 39, 88)
HSLhsl(288, 39%, 25%)
HSVhsv(288, 56%, 35%)
CMYKcmyk(11.4%, 55.7%, 0%, 65.5%)
CIE-LABlab(22.91, 27.15, -22.12)
CIE-LCHlch(22.91, 35.02, 320.84°)
OKLaboklab(34.68% 0.0709 -0.0613)
OKLCHoklch(34.68% 0.094 319.1)
XYZxyz(5.6286, 3.7755, 9.6629)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2758 #315827
analogous
#352758 #4E2758 #58274A
triadic
#4E2758 #584E27 #27584E
tetradic
#4E2758 #583527 #315827 #274A58
square
#4E2758 #583527 #315827 #274A58
split-complementary
#4E2758 #4A5827 #275835
monochromatic
#130915 #28142E #4E2758 #743A82 #994DAD

Accessibility & contrast

On white

11.97
#4E2758 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4E2758 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2758
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2758#FFFFFF#000000##FFFFFF
##4E27581.0011.971.7611.97
#FFFFFF11.971.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E345A
Deuteranopia (green-blind)
#2A3857
Tritanopia (blue-blind)
#4E2E3B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e2758;
/* rgb */ color: rgb(78, 39, 88);
/* oklch */ color: oklch(34.7% 0.094 319.1);
Tailwind
colors: {
  custom: {
    50: '#816387',
    500: '#4e2758',
    950: '#000000',
  },
}
SCSS
$custom: #4e2758;
$custom-light: #816387;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2758",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 88
  },
  "hsl": {
    "h": 287.755,
    "s": 38.583,
    "l": 24.902
  },
  "oklch": {
    "l": 0.3468,
    "c": 0.09377,
    "h": 319.1
  },
  "luminance": 0.03775
}

Semantic roles & 50–950 ramp

primary
#4E2758
secondary
#5C8B50
accent
#CF5971
background
#F8F5F8
surface
#EFEAEF
border
#CAC6CA
text
#0A050B
muted
#7C797C

Preview Lab

Preview with #4E2758

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

Preview Lab → · Contrast checker → · Palette generator →

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