#4E1A5A#4E1A5A

#4E1A5A is a dark, moderate purple. Relative luminance 0.031; OKLCH L 32.9% C 0.118 H 319.6°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#4E1A5A
RGBrgb(78, 26, 90)
HSLhsl(289, 55%, 23%)
HSVhsv(289, 71%, 35%)
CMYKcmyk(13.3%, 71.1%, 0%, 64.7%)
CIE-LABlab(20.43, 34.68, -27.39)
CIE-LCHlch(20.43, 44.19, 321.70°)
OKLaboklab(32.91% 0.0899 -0.0766)
OKLCHoklch(32.91% 0.118 319.6)
XYZxyz(5.3565, 3.0969, 9.9865)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A5A #265A1A
analogous
#2E1A5A #4E1A5A #5A1A46
triadic
#4E1A5A #5A4E1A #1A5A4E
tetradic
#4E1A5A #5A2E1A #265A1A #1A465A
square
#4E1A5A #5A2E1A #265A1A #1A465A
split-complementary
#4E1A5A #465A1A #1A5A2E
monochromatic
#150718 #250C2B #4E1A5A #772889 #A035B9

Accessibility & contrast

On white

12.97
#4E1A5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4E1A5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1A5A
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A5A#FFFFFF#000000##FFFFFF
##4E1A5A1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052E5C
Deuteranopia (green-blind)
#1F3358
Tritanopia (blue-blind)
#4E2537
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4e1a5a;
/* rgb */ color: rgb(78, 26, 90);
/* oklch */ color: oklch(32.9% 0.118 319.6);
Tailwind
colors: {
  custom: {
    50: '#825b89',
    500: '#4e1a5a',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a5a;
$custom-light: #825b89;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a5a",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 90
  },
  "hsl": {
    "h": 288.75,
    "s": 55.172,
    "l": 22.745
  },
  "oklch": {
    "l": 0.32906,
    "c": 0.11812,
    "h": 319.6
  },
  "luminance": 0.03097
}

Semantic roles & 50–950 ramp

primary
#4E1A5A
secondary
#4F9040
accent
#DF4965
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4E1A5A

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

Preview Lab → · Contrast checker → · Palette generator →

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