#4E1F4B#4E1F4B

#4E1F4B is a dark, moderate purple. Relative luminance 0.031; OKLCH L 32.6% C 0.094 H 330.0°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#4E1F4B
RGBrgb(78, 31, 75)
HSLhsl(304, 43%, 21%)
HSVhsv(304, 60%, 31%)
CMYKcmyk(0%, 60.3%, 3.8%, 69.4%)
CIE-LABlab(20.47, 28.91, -17.23)
CIE-LCHlch(20.47, 33.65, 329.21°)
OKLaboklab(32.65% 0.0817 -0.0472)
OKLCHoklch(32.65% 0.094 330)
XYZxyz(4.9018, 3.1080, 6.9970)
Luminance0.0311 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F4B #1F4E22
analogous
#3A1F4E #4E1F4B #4E1F34
triadic
#4E1F4B #4B4E1F #1F4B4E
tetradic
#4E1F4B #4E3A1F #1F4E22 #1F344E
square
#4E1F4B #4E3A1F #1F4E22 #1F344E
split-complementary
#4E1F4B #344E1F #1F4E3A
monochromatic
#160915 #220E21 #4E1F4B #7A3075 #A6429F

Accessibility & contrast

On white

12.95
#4E1F4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4E1F4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F4B
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F4B#FFFFFF#000000##FFFFFF
##4E1F4B1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2D4C
Deuteranopia (green-blind)
#2B344A
Tritanopia (blue-blind)
#512331
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4e1f4b;
/* rgb */ color: rgb(78, 31, 75);
/* oklch */ color: oklch(32.6% 0.094 330.0);
Tailwind
colors: {
  custom: {
    50: '#815d7d',
    500: '#4e1f4b',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f4b;
$custom-light: #815d7d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f4b",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 75
  },
  "hsl": {
    "h": 303.83,
    "s": 43.119,
    "l": 21.373
  },
  "oklch": {
    "l": 0.32645,
    "c": 0.09432,
    "h": 330
  },
  "luminance": 0.03108
}

Semantic roles & 50–950 ramp

primary
#4E1F4B
secondary
#46834A
accent
#D35D55
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A0409
muted
#7C797B

Preview Lab

Preview with #4E1F4B

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

Preview Lab → · Contrast checker → · Palette generator →

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