#4E1A58#4E1A58

#4E1A58 is a dark, moderate purple. Relative luminance 0.031; OKLCH L 32.8% C 0.116 H 320.8°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#4E1A58
RGBrgb(78, 26, 88)
HSLhsl(290, 54%, 22%)
HSVhsv(290, 70%, 35%)
CMYKcmyk(11.4%, 70.5%, 0%, 65.5%)
CIE-LABlab(20.30, 34.24, -26.26)
CIE-LCHlch(20.30, 43.16, 322.51°)
OKLaboklab(32.77% 0.09 -0.0733)
OKLCHoklch(32.77% 0.116 320.8)
XYZxyz(5.2725, 3.0633, 9.5442)
Luminance0.0306 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A58 #24581A
analogous
#2F1A58 #4E1A58 #581A43
triadic
#4E1A58 #584E1A #1A584E
tetradic
#4E1A58 #582F1A #24581A #1A4358
square
#4E1A58 #582F1A #24581A #1A4358
split-complementary
#4E1A58 #43581A #1A582F
monochromatic
#150718 #240C29 #4E1A58 #782887 #A236B6

Accessibility & contrast

On white

13.02
#4E1A58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#4E1A58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1A58
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A58#FFFFFF#000000##FFFFFF
##4E1A581.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082D5A
Deuteranopia (green-blind)
#203356
Tritanopia (blue-blind)
#4F2436
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4e1a58;
/* rgb */ color: rgb(78, 26, 88);
/* oklch */ color: oklch(32.8% 0.116 320.8);
Tailwind
colors: {
  custom: {
    50: '#825b87',
    500: '#4e1a58',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a58;
$custom-light: #825b87;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a58",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 88
  },
  "hsl": {
    "h": 290.323,
    "s": 54.386,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32768,
    "c": 0.11604,
    "h": 320.8
  },
  "luminance": 0.03063
}

Semantic roles & 50–950 ramp

primary
#4E1A58
secondary
#4C8E40
accent
#DE4A62
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4E1A58

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

Preview Lab → · Contrast checker → · Palette generator →

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