#4E2854#4E2854

#4E2854 is a dark, moderate purple. Relative luminance 0.038; OKLCH L 34.6% C 0.087 H 322.0°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#4E2854
RGBrgb(78, 40, 84)
HSLhsl(292, 35%, 24%)
HSVhsv(292, 52%, 33%)
CMYKcmyk(7.1%, 52.4%, 0%, 67.1%)
CIE-LABlab(22.92, 25.64, -19.45)
CIE-LCHlch(22.92, 32.18, 322.82°)
OKLaboklab(34.61% 0.0687 -0.0536)
OKLCHoklch(34.61% 0.087 322)
XYZxyz(5.5007, 3.7776, 8.8252)
Luminance0.0378 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2854 #2E5428
analogous
#382854 #4E2854 #542844
triadic
#4E2854 #544E28 #28544E
tetradic
#4E2854 #543828 #2E5428 #284454
square
#4E2854 #543828 #2E5428 #284454
split-complementary
#4E2854 #445428 #285438
monochromatic
#130A15 #28142B #4E2854 #743C7D #9B4FA7

Accessibility & contrast

On white

11.96
#4E2854 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2854
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2854#FFFFFF#000000##FFFFFF
##4E28541.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#223456
Deuteranopia (green-blind)
#2D3853
Tritanopia (blue-blind)
#4F2E3A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e2854;
/* rgb */ color: rgb(78, 40, 84);
/* oklch */ color: oklch(34.6% 0.087 322.0);
Tailwind
colors: {
  custom: {
    50: '#816384',
    500: '#4e2854',
    950: '#000000',
  },
}
SCSS
$custom: #4e2854;
$custom-light: #816384;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2854",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 84
  },
  "hsl": {
    "h": 291.818,
    "s": 35.484,
    "l": 24.314
  },
  "oklch": {
    "l": 0.34613,
    "c": 0.08714,
    "h": 322
  },
  "luminance": 0.03777
}

Semantic roles & 50–950 ramp

primary
#4E2854
secondary
#588751
accent
#CC5C6B
background
#F7F6F8
surface
#EEEBEF
border
#C9C6CA
text
#0A050B
muted
#7C7A7C

Preview Lab

Preview with #4E2854

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

Preview Lab → · Contrast checker → · Palette generator →

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