#4E1D62#4E1D62

#4E1D62 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 33.9% C 0.122 H 314.6°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#4E1D62
RGBrgb(78, 29, 98)
HSLhsl(283, 54%, 25%)
HSVhsv(283, 70%, 38%)
CMYKcmyk(20.4%, 70.4%, 0%, 61.6%)
CIE-LABlab(21.51, 35.01, -30.96)
CIE-LCHlch(21.51, 46.74, 318.52°)
OKLaboklab(33.86% 0.0857 -0.087)
OKLCHoklch(33.86% 0.122 314.6)
XYZxyz(5.7855, 3.3805, 11.9006)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1D62 #31621D
analogous
#2C1D62 #4E1D62 #621D53
triadic
#4E1D62 #624E1D #1D624E
tetradic
#4E1D62 #622C1D #31621D #1D5362
square
#4E1D62 #622C1D #31621D #1D5362
split-complementary
#4E1D62 #53621D #1D622C
monochromatic
#130718 #280F33 #4E1D62 #742B91 #9939C0

Accessibility & contrast

On white

12.53
#4E1D62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1D62
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1D62#FFFFFF#000000##FFFFFF
##4E1D621.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003164
Deuteranopia (green-blind)
#1B3560
Tritanopia (blue-blind)
#4C2A3D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e1d62;
/* rgb */ color: rgb(78, 29, 98);
/* oklch */ color: oklch(33.9% 0.122 314.6);
Tailwind
colors: {
  custom: {
    50: '#825d8f',
    500: '#4e1d62',
    950: '#000000',
  },
}
SCSS
$custom: #4e1d62;
$custom-light: #825d8f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1d62",
  "rgb": {
    "r": 78,
    "g": 29,
    "b": 98
  },
  "hsl": {
    "h": 282.609,
    "s": 54.331,
    "l": 24.902
  },
  "oklch": {
    "l": 0.33858,
    "c": 0.12218,
    "h": 314.6
  },
  "luminance": 0.0338
}

Semantic roles & 50–950 ramp

primary
#4E1D62
secondary
#5C9744
accent
#DE4A75
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4E1D62

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

Preview Lab → · Contrast checker → · Palette generator →

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