#4E1867#4E1867

#4E1867 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.6% C 0.135 H 312.7°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#4E1867
RGBrgb(78, 24, 103)
HSLhsl(281, 62%, 25%)
HSVhsv(281, 77%, 40%)
CMYKcmyk(24.3%, 76.7%, 0%, 59.6%)
CIE-LABlab(21.03, 38.55, -35.01)
CIE-LCHlch(21.03, 52.08, 317.76°)
OKLaboklab(33.63% 0.0912 -0.0989)
OKLCHoklch(33.63% 0.135 312.7)
XYZxyz(5.9163, 3.2524, 13.1455)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1867 #316718
analogous
#271867 #4E1867 #671858
triadic
#4E1867 #674E18 #18674E
tetradic
#4E1867 #672718 #316718 #185867
square
#4E1867 #672718 #316718 #185867
split-complementary
#4E1867 #586718 #186727
monochromatic
#130619 #280C35 #4E1867 #742499 #992FCA

Accessibility & contrast

On white

12.72
#4E1867 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4E1867 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1867
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1867#FFFFFF#000000##FFFFFF
##4E18671.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003069
Deuteranopia (green-blind)
#0F3465
Tritanopia (blue-blind)
#4B293E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4e1867;
/* rgb */ color: rgb(78, 24, 103);
/* oklch */ color: oklch(33.6% 0.135 312.7);
Tailwind
colors: {
  custom: {
    50: '#835b93',
    500: '#4e1867',
    950: '#000000',
  },
}
SCSS
$custom: #4e1867;
$custom-light: #835b93;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1867",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 103
  },
  "hsl": {
    "h": 281.013,
    "s": 62.205,
    "l": 24.902
  },
  "oklch": {
    "l": 0.33631,
    "c": 0.13451,
    "h": 312.7
  },
  "luminance": 0.03252
}

Semantic roles & 50–950 ramp

primary
#4E1867
secondary
#5C9D3E
accent
#E54376
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E1867

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

Preview Lab → · Contrast checker → · Palette generator →

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