#4E1F52#4E1F52

#4E1F52 is a dark, moderate purple. Relative luminance 0.032; OKLCH L 33.1% C 0.102 H 324.4°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#4E1F52
RGBrgb(78, 31, 82)
HSLhsl(295, 45%, 22%)
HSVhsv(295, 62%, 32%)
CMYKcmyk(4.9%, 62.2%, 0%, 67.8%)
CIE-LABlab(20.86, 30.37, -21.34)
CIE-LCHlch(20.86, 37.12, 324.90°)
OKLaboklab(33.06% 0.0826 -0.059)
OKLCHoklch(33.06% 0.102 324.4)
XYZxyz(5.1547, 3.2091, 8.3289)
Luminance0.0321 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F52 #23521F
analogous
#351F52 #4E1F52 #521F3D
triadic
#4E1F52 #524E1F #1F524E
tetradic
#4E1F52 #52351F #23521F #1F3D52
square
#4E1F52 #52351F #23521F #1F3D52
split-complementary
#4E1F52 #3D521F #1F5235
monochromatic
#150816 #240E26 #4E1F52 #78307E #A241AB

Accessibility & contrast

On white

12.79
#4E1F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1F52
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F52#FFFFFF#000000##FFFFFF
##4E1F521.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172E54
Deuteranopia (green-blind)
#273451
Tritanopia (blue-blind)
#502635
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e1f52;
/* rgb */ color: rgb(78, 31, 82);
/* oklch */ color: oklch(33.1% 0.102 324.4);
Tailwind
colors: {
  custom: {
    50: '#815e83',
    500: '#4e1f52',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f52;
$custom-light: #815e83;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f52",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 82
  },
  "hsl": {
    "h": 295.294,
    "s": 45.133,
    "l": 22.157
  },
  "oklch": {
    "l": 0.3306,
    "c": 0.10155,
    "h": 324.4
  },
  "luminance": 0.03209
}

Semantic roles & 50–950 ramp

primary
#4E1F52
secondary
#4B8746
accent
#D5535D
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0A040A
muted
#7C797C

Preview Lab

Preview with #4E1F52

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

Preview Lab → · Contrast checker → · Palette generator →

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