#4E1F54#4E1F54

#4E1F54 is a dark, moderate purple. Relative luminance 0.032; OKLCH L 33.2% C 0.104 H 323.0°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#4E1F54
RGBrgb(78, 31, 84)
HSLhsl(293, 46%, 23%)
HSVhsv(293, 63%, 33%)
CMYKcmyk(7.1%, 63.1%, 0%, 67.1%)
CIE-LABlab(20.98, 30.80, -22.50)
CIE-LCHlch(20.98, 38.14, 323.85°)
OKLaboklab(33.18% 0.0828 -0.0624)
OKLCHoklch(33.18% 0.104 323)
XYZxyz(5.2319, 3.2400, 8.7356)
Luminance0.0324 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F54 #25541F
analogous
#341F54 #4E1F54 #541F3F
triadic
#4E1F54 #544E1F #1F544E
tetradic
#4E1F54 #54341F #25541F #1F3F54
square
#4E1F54 #54341F #25541F #1F3F54
split-complementary
#4E1F54 #3F541F #1F5434
monochromatic
#150816 #240F27 #4E1F54 #782F81 #A140AD

Accessibility & contrast

On white

12.74
#4E1F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4E1F54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F54
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F54#FFFFFF#000000##FFFFFF
##4E1F541.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162F56
Deuteranopia (green-blind)
#263453
Tritanopia (blue-blind)
#4F2736
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e1f54;
/* rgb */ color: rgb(78, 31, 84);
/* oklch */ color: oklch(33.2% 0.104 323.0);
Tailwind
colors: {
  custom: {
    50: '#815e84',
    500: '#4e1f54',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f54;
$custom-light: #815e84;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f54",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 84
  },
  "hsl": {
    "h": 293.208,
    "s": 46.087,
    "l": 22.549
  },
  "oklch": {
    "l": 0.33184,
    "c": 0.10369,
    "h": 323
  },
  "luminance": 0.0324
}

Semantic roles & 50–950 ramp

primary
#4E1F54
secondary
#4E8946
accent
#D65261
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0A040B
muted
#7C797C

Preview Lab

Preview with #4E1F54

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

Preview Lab → · Contrast checker → · Palette generator →

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