#4E1B5C#4E1B5C

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

Color values

HEX#4E1B5C
RGBrgb(78, 27, 92)
HSLhsl(287, 55%, 23%)
HSVhsv(287, 71%, 36%)
CMYKcmyk(15.2%, 70.7%, 0%, 63.9%)
CIE-LABlab(20.74, 34.64, -28.22)
CIE-LCHlch(20.74, 44.68, 320.82°)
OKLaboklab(33.17% 0.0886 -0.079)
OKLCHoklch(33.17% 0.119 318.3)
XYZxyz(5.4653, 3.1765, 10.4484)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B5C #295C1B
analogous
#2D1B5C #4E1B5C #5C1B49
triadic
#4E1B5C #5C4E1B #1B5C4E
tetradic
#4E1B5C #5C2D1B #295C1B #1B495C
square
#4E1B5C #5C2D1B #295C1B #1B495C
split-complementary
#4E1B5C #495C1B #1B5C2D
monochromatic
#140718 #260D2D #4E1B5C #76298B #9E37BB

Accessibility & contrast

On white

12.84
#4E1B5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1B5C
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B5C#FFFFFF#000000##FFFFFF
##4E1B5C1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042F5E
Deuteranopia (green-blind)
#1E345A
Tritanopia (blue-blind)
#4E2739
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e1b5c;
/* rgb */ color: rgb(78, 27, 92);
/* oklch */ color: oklch(33.2% 0.119 318.3);
Tailwind
colors: {
  custom: {
    50: '#825c8a',
    500: '#4e1b5c',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b5c;
$custom-light: #825c8a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b5c",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 92
  },
  "hsl": {
    "h": 287.077,
    "s": 54.622,
    "l": 23.333
  },
  "oklch": {
    "l": 0.33172,
    "c": 0.11872,
    "h": 318.3
  },
  "luminance": 0.03176
}

Semantic roles & 50–950 ramp

primary
#4E1B5C
secondary
#529241
accent
#DE4A6A
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4E1B5C

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

Preview Lab → · Contrast checker → · Palette generator →

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