#4E2852#4E2852

#4E2852 is a dark, moderate purple. Relative luminance 0.037; OKLCH L 34.5% C 0.085 H 323.6°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#4E2852
RGBrgb(78, 40, 82)
HSLhsl(294, 34%, 24%)
HSVhsv(294, 51%, 32%)
CMYKcmyk(4.9%, 51.2%, 0%, 67.8%)
CIE-LABlab(22.82, 25.18, -18.28)
CIE-LCHlch(22.82, 31.12, 324.03°)
OKLaboklab(34.5% 0.0683 -0.0503)
OKLCHoklch(34.5% 0.085 323.6)
XYZxyz(5.4235, 3.7467, 8.4185)
Luminance0.0375 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2852 #2C5228
analogous
#392852 #4E2852 #522841
triadic
#4E2852 #524E28 #28524E
tetradic
#4E2852 #523928 #2C5228 #284152
square
#4E2852 #523928 #2C5228 #284152
split-complementary
#4E2852 #415228 #285239
monochromatic
#140A15 #271429 #4E2852 #753C7B #9C50A4

Accessibility & contrast

On white

12.01
#4E2852 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4E2852 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2852
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2852#FFFFFF#000000##FFFFFF
##4E28521.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#233453
Deuteranopia (green-blind)
#2E3851
Tritanopia (blue-blind)
#4F2D39
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e2852;
/* rgb */ color: rgb(78, 40, 82);
/* oklch */ color: oklch(34.5% 0.085 323.6);
Tailwind
colors: {
  custom: {
    50: '#816382',
    500: '#4e2852',
    950: '#000000',
  },
}
SCSS
$custom: #4e2852;
$custom-light: #816382;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2852",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 82
  },
  "hsl": {
    "h": 294.286,
    "s": 34.426,
    "l": 23.922
  },
  "oklch": {
    "l": 0.34499,
    "c": 0.08482,
    "h": 323.6
  },
  "luminance": 0.03746
}

Semantic roles & 50–950 ramp

primary
#4E2852
secondary
#568551
accent
#CB5D68
background
#F7F6F8
surface
#EEEBEF
border
#C9C6CA
text
#0A050A
muted
#7C7A7C

Preview Lab

Preview with #4E2852

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

Preview Lab → · Contrast checker → · Palette generator →

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