#4E1851#4E1851

#4E1851 is a dark, moderate purple. Relative luminance 0.029; OKLCH L 32.1% C 0.112 H 325.6°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#4E1851
RGBrgb(78, 24, 81)
HSLhsl(297, 54%, 21%)
HSVhsv(297, 70%, 32%)
CMYKcmyk(3.7%, 70.4%, 0%, 68.2%)
CIE-LABlab(19.50, 33.73, -22.81)
CIE-LCHlch(19.50, 40.72, 325.92°)
OKLaboklab(32.05% 0.0925 -0.0632)
OKLCHoklch(32.05% 0.112 325.6)
XYZxyz(4.9536, 2.8674, 8.0755)
Luminance0.0287 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1851 #1B5118
analogous
#311851 #4E1851 #511837
triadic
#4E1851 #514E18 #18514E
tetradic
#4E1851 #513118 #1B5118 #183751
square
#4E1851 #513118 #1B5118 #183751
split-complementary
#4E1851 #375118 #185131
monochromatic
#170718 #210A22 #4E1851 #7B2680 #A934AF

Accessibility & contrast

On white

13.35
#4E1851 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#4E1851 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1851
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1851#FFFFFF#000000##FFFFFF
##4E18511.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2B53
Deuteranopia (green-blind)
#233250
Tritanopia (blue-blind)
#502032
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4e1851;
/* rgb */ color: rgb(78, 24, 81);
/* oklch */ color: oklch(32.1% 0.112 325.6);
Tailwind
colors: {
  custom: {
    50: '#825a82',
    500: '#4e1851',
    950: '#000000',
  },
}
SCSS
$custom: #4e1851;
$custom-light: #825a82;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1851",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 81
  },
  "hsl": {
    "h": 296.842,
    "s": 54.286,
    "l": 20.588
  },
  "oklch": {
    "l": 0.32053,
    "c": 0.11202,
    "h": 325.6
  },
  "luminance": 0.02867
}

Semantic roles & 50–950 ramp

primary
#4E1851
secondary
#41883D
accent
#DE4A52
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #4E1851

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

Preview Lab → · Contrast checker → · Palette generator →

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