#4E1B52#4E1B52

#4E1B52 is a dark, moderate purple. Relative luminance 0.030; OKLCH L 32.5% C 0.108 H 324.7°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#4E1B52
RGBrgb(78, 27, 82)
HSLhsl(296, 50%, 21%)
HSVhsv(296, 67%, 32%)
CMYKcmyk(4.9%, 67.1%, 0%, 67.8%)
CIE-LABlab(20.10, 32.47, -22.55)
CIE-LCHlch(20.10, 39.53, 325.21°)
OKLaboklab(32.5% 0.0884 -0.0625)
OKLCHoklch(32.5% 0.108 324.7)
XYZxyz(5.0567, 3.0131, 8.2962)
Luminance0.0301 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B52 #1F521B
analogous
#331B52 #4E1B52 #521B3B
triadic
#4E1B52 #524E1B #1B524E
tetradic
#4E1B52 #52331B #1F521B #1B3B52
square
#4E1B52 #52331B #1F521B #1B3B52
split-complementary
#4E1B52 #3B521B #1B5233
monochromatic
#160817 #220C24 #4E1B52 #7A2A80 #A639AE

Accessibility & contrast

On white

13.10
#4E1B52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#4E1B52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1B52
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B52#FFFFFF#000000##FFFFFF
##4E1B521.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122D54
Deuteranopia (green-blind)
#253351
Tritanopia (blue-blind)
#502333
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4e1b52;
/* rgb */ color: rgb(78, 27, 82);
/* oklch */ color: oklch(32.5% 0.108 324.7);
Tailwind
colors: {
  custom: {
    50: '#825b83',
    500: '#4e1b52',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b52;
$custom-light: #825b83;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b52",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 82
  },
  "hsl": {
    "h": 295.636,
    "s": 50.459,
    "l": 21.373
  },
  "oklch": {
    "l": 0.32501,
    "c": 0.10829,
    "h": 324.7
  },
  "luminance": 0.03013
}

Semantic roles & 50–950 ramp

primary
#4E1B52
secondary
#468841
accent
#DA4E58
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #4E1B52

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

Preview Lab → · Contrast checker → · Palette generator →

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