#4E1F5F#4E1F5F

#4E1F5F is a dark, moderate purple. Relative luminance 0.034; OKLCH L 33.9% C 0.116 H 316.0°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#4E1F5F
RGBrgb(78, 31, 95)
HSLhsl(284, 51%, 25%)
HSVhsv(284, 67%, 37%)
CMYKcmyk(17.9%, 67.4%, 0%, 62.7%)
CIE-LABlab(21.68, 33.28, -28.71)
CIE-LCHlch(21.68, 43.96, 319.22°)
OKLaboklab(33.91% 0.0832 -0.0805)
OKLCHoklch(33.91% 0.116 316)
XYZxyz(5.6971, 3.4261, 11.1855)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F5F #305F1F
analogous
#2E1F5F #4E1F5F #5F1F50
triadic
#4E1F5F #5F4E1F #1F5F4E
tetradic
#4E1F5F #5F2E1F #305F1F #1F505F
square
#4E1F5F #5F2E1F #305F1F #1F505F
split-complementary
#4E1F5F #505F1F #1F5F2E
monochromatic
#130817 #281031 #4E1F5F #742E8D #9A3DBB

Accessibility & contrast

On white

12.46
#4E1F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4E1F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F5F
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F5F#FFFFFF#000000##FFFFFF
##4E1F5F1.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093161
Deuteranopia (green-blind)
#1F355D
Tritanopia (blue-blind)
#4D2B3C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e1f5f;
/* rgb */ color: rgb(78, 31, 95);
/* oklch */ color: oklch(33.9% 0.116 316.0);
Tailwind
colors: {
  custom: {
    50: '#825e8d',
    500: '#4e1f5f',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f5f;
$custom-light: #825e8d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f5f",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 95
  },
  "hsl": {
    "h": 284.063,
    "s": 50.794,
    "l": 24.706
  },
  "oklch": {
    "l": 0.33913,
    "c": 0.11577,
    "h": 316
  },
  "luminance": 0.03426
}

Semantic roles & 50–950 ramp

primary
#4E1F5F
secondary
#5B9446
accent
#DA4E73
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4E1F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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