#4E1861#4E1861

#4E1861 is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.2% C 0.128 H 315.8°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#4E1861
RGBrgb(78, 24, 97)
HSLhsl(284, 60%, 24%)
HSVhsv(284, 75%, 38%)
CMYKcmyk(19.6%, 75.3%, 0%, 62%)
CIE-LABlab(20.58, 37.18, -31.78)
CIE-LCHlch(20.58, 48.91, 319.47°)
OKLaboklab(33.17% 0.0919 -0.0894)
OKLCHoklch(33.17% 0.128 315.8)
XYZxyz(5.6258, 3.1362, 11.6160)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1861 #2B6118
analogous
#291861 #4E1861 #61184F
triadic
#4E1861 #614E18 #18614E
tetradic
#4E1861 #612918 #2B6118 #184F61
square
#4E1861 #612918 #2B6118 #184F61
split-complementary
#4E1861 #4F6118 #186129
monochromatic
#140619 #270C30 #4E1861 #752492 #9D30C3

Accessibility & contrast

On white

12.91
#4E1861 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#4E1861 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1861
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1861#FFFFFF#000000##FFFFFF
##4E18611.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E63
Deuteranopia (green-blind)
#17335F
Tritanopia (blue-blind)
#4D273A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e1861;
/* rgb */ color: rgb(78, 24, 97);
/* oklch */ color: oklch(33.2% 0.128 315.8);
Tailwind
colors: {
  custom: {
    50: '#825a8e',
    500: '#4e1861',
    950: '#000000',
  },
}
SCSS
$custom: #4e1861;
$custom-light: #825a8e;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1861",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 97
  },
  "hsl": {
    "h": 284.384,
    "s": 60.331,
    "l": 23.725
  },
  "oklch": {
    "l": 0.33172,
    "c": 0.12825,
    "h": 315.8
  },
  "luminance": 0.03136
}

Semantic roles & 50–950 ramp

primary
#4E1861
secondary
#55973D
accent
#E3446E
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4E1861

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

Preview Lab → · Contrast checker → · Palette generator →

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