#4E1F64#4E1F64

#4E1F64 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.3% C 0.121 H 313.2°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#4E1F64
RGBrgb(78, 31, 100)
HSLhsl(281, 53%, 26%)
HSVhsv(281, 69%, 39%)
CMYKcmyk(22%, 69%, 0%, 60.8%)
CIE-LABlab(22.02, 34.47, -31.45)
CIE-LCHlch(22.02, 46.66, 317.62°)
OKLaboklab(34.27% 0.0831 -0.0885)
OKLCHoklch(34.27% 0.121 313.2)
XYZxyz(5.9317, 3.5199, 12.4211)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F64 #35641F
analogous
#2B1F64 #4E1F64 #641F57
triadic
#4E1F64 #644E1F #1F644E
tetradic
#4E1F64 #642B1F #35641F #1F5764
square
#4E1F64 #642B1F #35641F #1F5764
split-complementary
#4E1F64 #57641F #1F642B
monochromatic
#120717 #2A1135 #4E1F64 #722D93 #973CC1

Accessibility & contrast

On white

12.32
#4E1F64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4E1F64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F64
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F64#FFFFFF#000000##FFFFFF
##4E1F641.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003266
Deuteranopia (green-blind)
#1B3662
Tritanopia (blue-blind)
#4C2C3E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e1f64;
/* rgb */ color: rgb(78, 31, 100);
/* oklch */ color: oklch(34.3% 0.121 313.2);
Tailwind
colors: {
  custom: {
    50: '#825e90',
    500: '#4e1f64',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f64;
$custom-light: #825e90;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f64",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 100
  },
  "hsl": {
    "h": 280.87,
    "s": 52.672,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34269,
    "c": 0.12138,
    "h": 313.2
  },
  "luminance": 0.0352
}

Semantic roles & 50–950 ramp

primary
#4E1F64
secondary
#619846
accent
#DC4C7A
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #4E1F64

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

Preview Lab → · Contrast checker → · Palette generator →

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