#4E1B5F#4E1B5F

#4E1B5F is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.4% C 0.122 H 316.5°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#4E1B5F
RGBrgb(78, 27, 95)
HSLhsl(285, 56%, 24%)
HSVhsv(285, 72%, 37%)
CMYKcmyk(17.9%, 71.6%, 0%, 62.7%)
CIE-LABlab(20.94, 35.31, -29.88)
CIE-LCHlch(20.94, 46.26, 319.76°)
OKLaboklab(33.39% 0.0885 -0.0839)
OKLCHoklch(33.39% 0.122 316.5)
XYZxyz(5.5991, 3.2300, 11.1528)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B5F #2C5F1B
analogous
#2C1B5F #4E1B5F #5F1B4E
triadic
#4E1B5F #5F4E1B #1B5F4E
tetradic
#4E1B5F #5F2C1B #2C5F1B #1B4E5F
square
#4E1B5F #5F2C1B #2C5F1B #1B4E5F
split-complementary
#4E1B5F #4E5F1B #1B5F2C
monochromatic
#140718 #270D2F #4E1B5F #75298F #9C36BE

Accessibility & contrast

On white

12.76
#4E1B5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1B5F
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B5F#FFFFFF#000000##FFFFFF
##4E1B5F1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F61
Deuteranopia (green-blind)
#1C345D
Tritanopia (blue-blind)
#4D283A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e1b5f;
/* rgb */ color: rgb(78, 27, 95);
/* oklch */ color: oklch(33.4% 0.122 316.5);
Tailwind
colors: {
  custom: {
    50: '#825c8d',
    500: '#4e1b5f',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b5f;
$custom-light: #825c8d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b5f",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 95
  },
  "hsl": {
    "h": 285,
    "s": 55.738,
    "l": 23.922
  },
  "oklch": {
    "l": 0.33385,
    "c": 0.12191,
    "h": 316.5
  },
  "luminance": 0.0323
}

Semantic roles & 50–950 ramp

primary
#4E1B5F
secondary
#569541
accent
#DF496E
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4E1B5F

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

Preview Lab → · Contrast checker → · Palette generator →

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