#4E2759#4E2759

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

Color values

HEX#4E2759
RGBrgb(78, 39, 89)
HSLhsl(287, 39%, 25%)
HSVhsv(287, 56%, 35%)
CMYKcmyk(12.4%, 56.2%, 0%, 65.1%)
CIE-LABlab(22.97, 27.39, -22.69)
CIE-LCHlch(22.97, 35.56, 320.36°)
OKLaboklab(34.74% 0.0711 -0.063)
OKLCHoklch(34.74% 0.095 318.4)
XYZxyz(5.6703, 3.7922, 9.8825)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2759 #325927
analogous
#352759 #4E2759 #59274B
triadic
#4E2759 #594E27 #27594E
tetradic
#4E2759 #593527 #325927 #274B59
square
#4E2759 #593527 #325927 #274B59
split-complementary
#4E2759 #4B5927 #275935
monochromatic
#130915 #29142E #4E2759 #733A84 #994CAE

Accessibility & contrast

On white

11.94
#4E2759 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2759
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2759#FFFFFF#000000##FFFFFF
##4E27591.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D345B
Deuteranopia (green-blind)
#2A3858
Tritanopia (blue-blind)
#4E2E3C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e2759;
/* rgb */ color: rgb(78, 39, 89);
/* oklch */ color: oklch(34.7% 0.095 318.4);
Tailwind
colors: {
  custom: {
    50: '#816388',
    500: '#4e2759',
    950: '#000000',
  },
}
SCSS
$custom: #4e2759;
$custom-light: #816388;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2759",
  "rgb": {
    "r": 78,
    "g": 39,
    "b": 89
  },
  "hsl": {
    "h": 286.8,
    "s": 39.062,
    "l": 25.098
  },
  "oklch": {
    "l": 0.34741,
    "c": 0.09497,
    "h": 318.4
  },
  "luminance": 0.03792
}

Semantic roles & 50–950 ramp

primary
#4E2759
secondary
#5D8C50
accent
#CF5973
background
#F8F5F8
surface
#EFEAEF
border
#CAC6CA
text
#0A050B
muted
#7C797C

Preview Lab

Preview with #4E2759

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

Preview Lab → · Contrast checker → · Palette generator →

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