#4E2855#4E2855

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

Color values

HEX#4E2855
RGBrgb(78, 40, 85)
HSLhsl(291, 36%, 25%)
HSVhsv(291, 53%, 33%)
CMYKcmyk(8.2%, 52.9%, 0%, 66.7%)
CIE-LABlab(22.98, 25.86, -20.03)
CIE-LCHlch(22.98, 32.71, 322.25°)
OKLaboklab(34.67% 0.0689 -0.0553)
OKLCHoklch(34.67% 0.088 321.2)
XYZxyz(5.5402, 3.7934, 9.0329)
Luminance0.0379 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2855 #2F5528
analogous
#382855 #4E2855 #552846
triadic
#4E2855 #554E28 #28554E
tetradic
#4E2855 #553828 #2F5528 #284655
square
#4E2855 #553828 #2F5528 #284655
split-complementary
#4E2855 #465528 #285538
monochromatic
#130A15 #28142B #4E2855 #743C7F #9A4FA8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E2855#FFFFFF#000000##FFFFFF
##4E28551.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)
#213457
Deuteranopia (green-blind)
#2C3854
Tritanopia (blue-blind)
#4F2E3A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e2855;
/* rgb */ color: rgb(78, 40, 85);
/* oklch */ color: oklch(34.7% 0.088 321.2);
Tailwind
colors: {
  custom: {
    50: '#816385',
    500: '#4e2855',
    950: '#000000',
  },
}
SCSS
$custom: #4e2855;
$custom-light: #816385;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2855",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 85
  },
  "hsl": {
    "h": 290.667,
    "s": 36,
    "l": 24.51
  },
  "oklch": {
    "l": 0.34671,
    "c": 0.08833,
    "h": 321.2
  },
  "luminance": 0.03793
}

Semantic roles & 50–950 ramp

primary
#4E2855
secondary
#5A8851
accent
#CC5C6D
background
#F7F6F8
surface
#EEEBEF
border
#C9C6CA
text
#0A050B
muted
#7C7A7C

Preview Lab

Preview with #4E2855

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

Preview Lab → · Contrast checker → · Palette generator →

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