#4E1248#4E1248

#4E1248 is a dark, moderate purple. Relative luminance 0.025; OKLCH L 30.8% C 0.112 H 332.3°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#4E1248
RGBrgb(78, 18, 72)
HSLhsl(306, 63%, 19%)
HSVhsv(306, 77%, 31%)
CMYKcmyk(0%, 76.9%, 7.7%, 69.4%)
CIE-LABlab(18.01, 34.65, -19.03)
CIE-LCHlch(18.01, 39.54, 331.22°)
OKLaboklab(30.8% 0.0995 -0.0523)
OKLCHoklch(30.8% 0.112 332.3)
XYZxyz(4.5279, 2.5206, 6.3777)
Luminance0.0252 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1248 #124E18
analogous
#36124E #4E1248 #4E122A
triadic
#4E1248 #484E12 #12484E
tetradic
#4E1248 #4E3612 #124E18 #122A4E
square
#4E1248 #4E3612 #124E18 #122A4E
split-complementary
#4E1248 #2A4E12 #124E36
monochromatic
#190617 #1C071A #4E1248 #801D76 #B129A4

Accessibility & contrast

On white

13.96
#4E1248 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#4E1248 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1248
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1248#FFFFFF#000000##FFFFFF
##4E12481.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F274A
Deuteranopia (green-blind)
#252F47
Tritanopia (blue-blind)
#52182B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4e1248;
/* rgb */ color: rgb(78, 18, 72);
/* oklch */ color: oklch(30.8% 0.112 332.3);
Tailwind
colors: {
  custom: {
    50: '#82567b',
    500: '#4e1248',
    950: '#000000',
  },
}
SCSS
$custom: #4e1248;
$custom-light: #82567b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1248",
  "rgb": {
    "r": 78,
    "g": 18,
    "b": 72
  },
  "hsl": {
    "h": 306,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.30798,
    "c": 0.1124,
    "h": 332.3
  },
  "luminance": 0.0252
}

Semantic roles & 50–950 ramp

primary
#4E1248
secondary
#35873D
accent
#E65342
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #4E1248

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

Preview Lab → · Contrast checker → · Palette generator →

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