#4E1862#4E1862

#4E1862 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.2% C 0.129 H 315.2°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#4E1862
RGBrgb(78, 24, 98)
HSLhsl(284, 61%, 24%)
HSVhsv(284, 76%, 38%)
CMYKcmyk(20.4%, 75.5%, 0%, 61.6%)
CIE-LABlab(20.65, 37.41, -32.33)
CIE-LCHlch(20.65, 49.44, 319.17°)
OKLaboklab(33.25% 0.0918 -0.091)
OKLCHoklch(33.25% 0.129 315.2)
XYZxyz(5.6728, 3.1550, 11.8631)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1862 #2C6218
analogous
#291862 #4E1862 #621851
triadic
#4E1862 #624E18 #18624E
tetradic
#4E1862 #622918 #2C6218 #185162
square
#4E1862 #622918 #2C6218 #185162
split-complementary
#4E1862 #516218 #186229
monochromatic
#140619 #270C31 #4E1862 #752493 #9C30C4

Accessibility & contrast

On white

12.88
#4E1862 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1862
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1862#FFFFFF#000000##FFFFFF
##4E18621.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F64
Deuteranopia (green-blind)
#163360
Tritanopia (blue-blind)
#4C273B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e1862;
/* rgb */ color: rgb(78, 24, 98);
/* oklch */ color: oklch(33.2% 0.129 315.2);
Tailwind
colors: {
  custom: {
    50: '#825a8f',
    500: '#4e1862',
    950: '#000000',
  },
}
SCSS
$custom: #4e1862;
$custom-light: #825a8f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1862",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 98
  },
  "hsl": {
    "h": 283.784,
    "s": 60.656,
    "l": 23.922
  },
  "oklch": {
    "l": 0.33247,
    "c": 0.1293,
    "h": 315.2
  },
  "luminance": 0.03155
}

Semantic roles & 50–950 ramp

primary
#4E1862
secondary
#56983E
accent
#E4446F
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4E1862

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

Preview Lab → · Contrast checker → · Palette generator →

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