#4E1A5E#4E1A5E

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

Color values

HEX#4E1A5E
RGBrgb(78, 26, 94)
HSLhsl(286, 57%, 24%)
HSVhsv(286, 72%, 37%)
CMYKcmyk(17%, 72.3%, 0%, 63.1%)
CIE-LABlab(20.70, 35.57, -29.61)
CIE-LCHlch(20.70, 46.28, 320.23°)
OKLaboklab(33.19% 0.0898 -0.0831)
OKLCHoklch(33.19% 0.122 317.2)
XYZxyz(5.5314, 3.1669, 10.9074)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A5E #2A5E1A
analogous
#2C1A5E #4E1A5E #5E1A4C
triadic
#4E1A5E #5E4E1A #1A5E4E
tetradic
#4E1A5E #5E2C1A #2A5E1A #1A4C5E
square
#4E1A5E #5E2C1A #2A5E1A #1A4C5E
split-complementary
#4E1A5E #4C5E1A #1A5E2C
monochromatic
#140718 #260D2E #4E1A5E #76278E #9E35BE

Accessibility & contrast

On white

12.86
#4E1A5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1A5E
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A5E#FFFFFF#000000##FFFFFF
##4E1A5E1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F60
Deuteranopia (green-blind)
#1C335C
Tritanopia (blue-blind)
#4D2739
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e1a5e;
/* rgb */ color: rgb(78, 26, 94);
/* oklch */ color: oklch(33.2% 0.122 317.2);
Tailwind
colors: {
  custom: {
    50: '#825b8c',
    500: '#4e1a5e',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a5e;
$custom-light: #825b8c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a5e",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 94
  },
  "hsl": {
    "h": 285.882,
    "s": 56.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.33189,
    "c": 0.12231,
    "h": 317.2
  },
  "luminance": 0.03167
}

Semantic roles & 50–950 ramp

primary
#4E1A5E
secondary
#549440
accent
#E0486C
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4E1A5E

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

Preview Lab → · Contrast checker → · Palette generator →

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