#4E2148#4E2148

#4E2148 is a dark, moderate purple. Relative luminance 0.032; OKLCH L 32.8% C 0.088 H 332.7°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#4E2148
RGBrgb(78, 33, 72)
HSLhsl(308, 41%, 22%)
HSVhsv(308, 58%, 31%)
CMYKcmyk(0%, 57.7%, 7.7%, 69.4%)
CIE-LABlab(20.73, 27.19, -14.78)
CIE-LCHlch(20.73, 30.94, 331.47°)
OKLaboklab(32.79% 0.0779 -0.0402)
OKLCHoklch(32.79% 0.088 332.7)
XYZxyz(4.8554, 3.1756, 6.4869)
Luminance0.0318 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2148 #214E27
analogous
#3E214E #4E2148 #4E2132
triadic
#4E2148 #484E21 #21484E
tetradic
#4E2148 #4E3E21 #214E27 #21324E
square
#4E2148 #4E3E21 #214E27 #21324E
split-complementary
#4E2148 #324E21 #214E3E
monochromatic
#160914 #230F20 #4E2148 #793370 #A44597

Accessibility & contrast

On white

12.84
#4E2148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#4E2148 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2148
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2148#FFFFFF#000000##FFFFFF
##4E21481.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202E49
Deuteranopia (green-blind)
#2D3447
Tritanopia (blue-blind)
#512431
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e2148;
/* rgb */ color: rgb(78, 33, 72);
/* oklch */ color: oklch(32.8% 0.088 332.7);
Tailwind
colors: {
  custom: {
    50: '#815f7b',
    500: '#4e2148',
    950: '#000000',
  },
}
SCSS
$custom: #4e2148;
$custom-light: #815f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2148",
  "rgb": {
    "r": 78,
    "g": 33,
    "b": 72
  },
  "hsl": {
    "h": 308,
    "s": 40.541,
    "l": 21.765
  },
  "oklch": {
    "l": 0.32788,
    "c": 0.08765,
    "h": 332.7
  },
  "luminance": 0.03175
}

Semantic roles & 50–950 ramp

primary
#4E2148
secondary
#498250
accent
#D06857
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0A0409
muted
#7C797B

Preview Lab

Preview with #4E2148

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

Preview Lab → · Contrast checker → · Palette generator →

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