#4E1A66#4E1A66

#4E1A66 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.8% C 0.131 H 312.9°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#4E1A66
RGBrgb(78, 26, 102)
HSLhsl(281, 59%, 25%)
HSVhsv(281, 75%, 40%)
CMYKcmyk(23.5%, 74.5%, 0%, 60%)
CIE-LABlab(21.27, 37.41, -33.95)
CIE-LCHlch(21.27, 50.52, 317.77°)
OKLaboklab(33.78% 0.0891 -0.0958)
OKLCHoklch(33.78% 0.131 312.9)
XYZxyz(5.9091, 3.3180, 12.8970)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A66 #32661A
analogous
#281A66 #4E1A66 #661A58
triadic
#4E1A66 #664E1A #1A664E
tetradic
#4E1A66 #66281A #32661A #1A5866
square
#4E1A66 #66281A #32661A #1A5866
split-complementary
#4E1A66 #58661A #1A6628
monochromatic
#130618 #290E35 #4E1A66 #732697 #9933C8

Accessibility & contrast

On white

12.62
#4E1A66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4E1A66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1A66
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A66#FFFFFF#000000##FFFFFF
##4E1A661.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003068
Deuteranopia (green-blind)
#133464
Tritanopia (blue-blind)
#4B2A3E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4e1a66;
/* rgb */ color: rgb(78, 26, 102);
/* oklch */ color: oklch(33.8% 0.131 312.9);
Tailwind
colors: {
  custom: {
    50: '#835c92',
    500: '#4e1a66',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a66;
$custom-light: #835c92;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a66",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 102
  },
  "hsl": {
    "h": 281.053,
    "s": 59.375,
    "l": 25.098
  },
  "oklch": {
    "l": 0.33783,
    "c": 0.13081,
    "h": 312.9
  },
  "luminance": 0.03318
}

Semantic roles & 50–950 ramp

primary
#4E1A66
secondary
#5D9C40
accent
#E34577
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E1A66

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

Preview Lab → · Contrast checker → · Palette generator →

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