#4E1256#4E1256

#4E1256 is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.7% C 0.125 H 322.7°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#4E1256
RGBrgb(78, 18, 86)
HSLhsl(293, 65%, 20%)
HSVhsv(293, 79%, 34%)
CMYKcmyk(9.3%, 79.1%, 0%, 66.3%)
CIE-LABlab(18.90, 37.36, -27.14)
CIE-LCHlch(18.90, 46.18, 324.00°)
OKLaboklab(31.73% 0.0996 -0.0758)
OKLCHoklch(31.73% 0.125 322.7)
XYZxyz(5.0377, 2.7245, 9.0628)
Luminance0.0272 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1256 #1A5612
analogous
#2C1256 #4E1256 #56123C
triadic
#4E1256 #564E12 #12564E
tetradic
#4E1256 #562C12 #1A5612 #123C56
square
#4E1256 #562C12 #1A5612 #123C56
split-complementary
#4E1256 #3C5612 #12562C
monochromatic
#170519 #200723 #4E1256 #7C1D89 #AA27BB

Accessibility & contrast

On white

13.59
#4E1256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#4E1256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1256
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1256#FFFFFF#000000##FFFFFF
##4E12561.0013.591.5413.59
#FFFFFF13.591.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A58
Deuteranopia (green-blind)
#1D3054
Tritanopia (blue-blind)
#4F1F33
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4e1256;
/* rgb */ color: rgb(78, 18, 86);
/* oklch */ color: oklch(31.7% 0.125 322.7);
Tailwind
colors: {
  custom: {
    50: '#825786',
    500: '#4e1256',
    950: '#000000',
  },
}
SCSS
$custom: #4e1256;
$custom-light: #825786;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1256",
  "rgb": {
    "r": 78,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 292.941,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.31727,
    "c": 0.12515,
    "h": 322.7
  },
  "luminance": 0.02724
}

Semantic roles & 50–950 ramp

primary
#4E1256
secondary
#408F35
accent
#E83F53
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4E1256

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

Preview Lab → · Contrast checker → · Palette generator →

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