#4E1B5D#4E1B5D

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

Color values

HEX#4E1B5D
RGBrgb(78, 27, 93)
HSLhsl(286, 55%, 24%)
HSVhsv(286, 71%, 36%)
CMYKcmyk(16.1%, 71%, 0%, 63.5%)
CIE-LABlab(20.81, 34.86, -28.78)
CIE-LCHlch(20.81, 45.21, 320.46°)
OKLaboklab(33.24% 0.0886 -0.0807)
OKLCHoklch(33.24% 0.12 317.7)
XYZxyz(5.5093, 3.1941, 10.6801)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B5D #2A5D1B
analogous
#2D1B5D #4E1B5D #5D1B4B
triadic
#4E1B5D #5D4E1B #1B5D4E
tetradic
#4E1B5D #5D2D1B #2A5D1B #1B4B5D
square
#4E1B5D #5D2D1B #2A5D1B #1B4B5D
split-complementary
#4E1B5D #4B5D1B #1B5D2D
monochromatic
#140718 #260D2E #4E1B5D #76298C #9E37BC

Accessibility & contrast

On white

12.81
#4E1B5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1B5D
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B5D#FFFFFF#000000##FFFFFF
##4E1B5D1.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022F5F
Deuteranopia (green-blind)
#1D345B
Tritanopia (blue-blind)
#4E2739
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e1b5d;
/* rgb */ color: rgb(78, 27, 93);
/* oklch */ color: oklch(33.2% 0.120 317.7);
Tailwind
colors: {
  custom: {
    50: '#825c8b',
    500: '#4e1b5d',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b5d;
$custom-light: #825c8b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b5d",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 93
  },
  "hsl": {
    "h": 286.364,
    "s": 55,
    "l": 23.529
  },
  "oklch": {
    "l": 0.33242,
    "c": 0.11978,
    "h": 317.7
  },
  "luminance": 0.03194
}

Semantic roles & 50–950 ramp

primary
#4E1B5D
secondary
#549341
accent
#DE496B
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4E1B5D

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

Preview Lab → · Contrast checker → · Palette generator →

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