#4E1868#4E1868

#4E1868 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.7% C 0.136 H 312.2°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#4E1868
RGBrgb(78, 24, 104)
HSLhsl(281, 63%, 25%)
HSVhsv(281, 77%, 41%)
CMYKcmyk(25%, 76.9%, 0%, 59.2%)
CIE-LABlab(21.10, 38.79, -35.54)
CIE-LCHlch(21.10, 52.61, 317.50°)
OKLaboklab(33.71% 0.091 -0.1005)
OKLCHoklch(33.71% 0.136 312.2)
XYZxyz(5.9668, 3.2726, 13.4114)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1868 #326818
analogous
#261868 #4E1868 #68185A
triadic
#4E1868 #684E18 #18684E
tetradic
#4E1868 #682618 #326818 #185A68
square
#4E1868 #682618 #326818 #185A68
split-complementary
#4E1868 #5A6818 #186826
monochromatic
#130619 #290D36 #4E1868 #73239A #992FCB

Accessibility & contrast

On white

12.69
#4E1868 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1868
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1868#FFFFFF#000000##FFFFFF
##4E18681.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306A
Deuteranopia (green-blind)
#0E3466
Tritanopia (blue-blind)
#4B2A3E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4e1868;
/* rgb */ color: rgb(78, 24, 104);
/* oklch */ color: oklch(33.7% 0.136 312.2);
Tailwind
colors: {
  custom: {
    50: '#835b94',
    500: '#4e1868',
    950: '#000000',
  },
}
SCSS
$custom: #4e1868;
$custom-light: #835b94;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1868",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 104
  },
  "hsl": {
    "h": 280.5,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.3371,
    "c": 0.13555,
    "h": 312.2
  },
  "luminance": 0.03272
}

Semantic roles & 50–950 ramp

primary
#4E1868
secondary
#5D9E3E
accent
#E64277
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E1868

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

Preview Lab → · Contrast checker → · Palette generator →

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