#4E1251#4E1251

#4E1251 is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.4% C 0.120 H 325.9°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#4E1251
RGBrgb(78, 18, 81)
HSLhsl(297, 64%, 19%)
HSVhsv(297, 78%, 32%)
CMYKcmyk(3.7%, 77.8%, 0%, 68.2%)
CIE-LABlab(18.57, 36.36, -24.30)
CIE-LCHlch(18.57, 43.73, 326.25°)
OKLaboklab(31.38% 0.0998 -0.0675)
OKLCHoklch(31.38% 0.12 325.9)
XYZxyz(4.8433, 2.6467, 8.0388)
Luminance0.0265 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1251 #155112
analogous
#2F1251 #4E1251 #511235
triadic
#4E1251 #514E12 #12514E
tetradic
#4E1251 #512F12 #155112 #123551
square
#4E1251 #512F12 #155112 #123551
split-complementary
#4E1251 #355112 #12512F
monochromatic
#180619 #1E071F #4E1251 #7E1D83 #AE28B5

Accessibility & contrast

On white

13.73
#4E1251 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#4E1251 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1251
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1251#FFFFFF#000000##FFFFFF
##4E12511.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042853
Deuteranopia (green-blind)
#20304F
Tritanopia (blue-blind)
#501C30
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4e1251;
/* rgb */ color: rgb(78, 18, 81);
/* oklch */ color: oklch(31.4% 0.120 325.9);
Tailwind
colors: {
  custom: {
    50: '#825782',
    500: '#4e1251',
    950: '#000000',
  },
}
SCSS
$custom: #4e1251;
$custom-light: #825782;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1251",
  "rgb": {
    "r": 78,
    "g": 18,
    "b": 81
  },
  "hsl": {
    "h": 297.143,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.3138,
    "c": 0.12049,
    "h": 325.9
  },
  "luminance": 0.02646
}

Semantic roles & 50–950 ramp

primary
#4E1251
secondary
#398A35
accent
#E74149
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4E1251

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

Preview Lab → · Contrast checker → · Palette generator →

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