#4E1F5D#4E1F5D

#4E1F5D is a dark, moderate purple. Relative luminance 0.034; OKLCH L 33.8% C 0.114 H 317.1°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#4E1F5D
RGBrgb(78, 31, 93)
HSLhsl(285, 50%, 24%)
HSVhsv(285, 67%, 36%)
CMYKcmyk(16.1%, 66.7%, 0%, 63.5%)
CIE-LABlab(21.54, 32.82, -27.60)
CIE-LCHlch(21.54, 42.88, 319.94°)
OKLaboklab(33.78% 0.0832 -0.0772)
OKLCHoklch(33.78% 0.114 317.1)
XYZxyz(5.6074, 3.3902, 10.7128)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F5D #2E5D1F
analogous
#2F1F5D #4E1F5D #5D1F4D
triadic
#4E1F5D #5D4E1F #1F5D4E
tetradic
#4E1F5D #5D2F1F #2E5D1F #1F4D5D
square
#4E1F5D #5D2F1F #2E5D1F #1F4D5D
split-complementary
#4E1F5D #4D5D1F #1F5D2F
monochromatic
#130817 #28102F #4E1F5D #742E8B #9B3EB9

Accessibility & contrast

On white

12.51
#4E1F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4E1F5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F5D
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F5D#FFFFFF#000000##FFFFFF
##4E1F5D1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C315F
Deuteranopia (green-blind)
#21355B
Tritanopia (blue-blind)
#4D2A3B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e1f5d;
/* rgb */ color: rgb(78, 31, 93);
/* oklch */ color: oklch(33.8% 0.114 317.1);
Tailwind
colors: {
  custom: {
    50: '#825e8b',
    500: '#4e1f5d',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f5d;
$custom-light: #825e8b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f5d",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 93
  },
  "hsl": {
    "h": 285.484,
    "s": 50,
    "l": 24.314
  },
  "oklch": {
    "l": 0.33775,
    "c": 0.11354,
    "h": 317.1
  },
  "luminance": 0.0339
}

Semantic roles & 50–950 ramp

primary
#4E1F5D
secondary
#589246
accent
#DA4E70
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4E1F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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