#4E2856#4E2856

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

Color values

HEX#4E2856
RGBrgb(78, 40, 86)
HSLhsl(290, 37%, 25%)
HSVhsv(290, 53%, 34%)
CMYKcmyk(9.3%, 53.5%, 0%, 66.3%)
CIE-LABlab(23.03, 26.09, -20.61)
CIE-LCHlch(23.03, 33.25, 321.70°)
OKLaboklab(34.73% 0.069 -0.057)
OKLCHoklch(34.73% 0.09 320.4)
XYZxyz(5.5802, 3.8094, 9.2436)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2856 #305628
analogous
#372856 #4E2856 #562847
triadic
#4E2856 #564E28 #28564E
tetradic
#4E2856 #563728 #305628 #284756
square
#4E2856 #563728 #305628 #284756
split-complementary
#4E2856 #475628 #285637
monochromatic
#130A15 #28152C #4E2856 #743B80 #9A4FAA

Accessibility & contrast

On white

11.92
#4E2856 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2856
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2856#FFFFFF#000000##FFFFFF
##4E28561.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213458
Deuteranopia (green-blind)
#2C3855
Tritanopia (blue-blind)
#4F2E3B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e2856;
/* rgb */ color: rgb(78, 40, 86);
/* oklch */ color: oklch(34.7% 0.089 320.4);
Tailwind
colors: {
  custom: {
    50: '#816386',
    500: '#4e2856',
    950: '#000000',
  },
}
SCSS
$custom: #4e2856;
$custom-light: #816386;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2856",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 86
  },
  "hsl": {
    "h": 289.565,
    "s": 36.508,
    "l": 24.706
  },
  "oklch": {
    "l": 0.34729,
    "c": 0.0895,
    "h": 320.4
  },
  "luminance": 0.03809
}

Semantic roles & 50–950 ramp

primary
#4E2856
secondary
#5B8951
accent
#CD5B6F
background
#F8F6F8
surface
#EFEBEF
border
#CAC6CA
text
#0A050B
muted
#7C7A7C

Preview Lab

Preview with #4E2856

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

Preview Lab → · Contrast checker → · Palette generator →

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