#4E1668#4E1668

#4E1668 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.5% C 0.138 H 312.4°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#4E1668
RGBrgb(78, 22, 104)
HSLhsl(281, 65%, 25%)
HSVhsv(281, 79%, 41%)
CMYKcmyk(25%, 78.8%, 0%, 59.2%)
CIE-LABlab(20.80, 39.65, -36.03)
CIE-LCHlch(20.80, 53.57, 317.74°)
OKLaboklab(33.5% 0.0931 -0.1019)
OKLCHoklch(33.5% 0.138 312.4)
XYZxyz(5.9270, 3.1932, 13.3981)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1668 #306816
analogous
#251668 #4E1668 #681659
triadic
#4E1668 #684E16 #16684E
tetradic
#4E1668 #682516 #306816 #165968
square
#4E1668 #682516 #306816 #165968
split-complementary
#4E1668 #596816 #166825
monochromatic
#130519 #280B35 #4E1668 #74219B #9A2BCD

Accessibility & contrast

On white

12.82
#4E1668 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#4E1668 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1668
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1668#FFFFFF#000000##FFFFFF
##4E16681.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6A
Deuteranopia (green-blind)
#0B3366
Tritanopia (blue-blind)
#4B293E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e1668;
/* rgb */ color: rgb(78, 22, 104);
/* oklch */ color: oklch(33.5% 0.138 312.4);
Tailwind
colors: {
  custom: {
    50: '#835a94',
    500: '#4e1668',
    950: '#000000',
  },
}
SCSS
$custom: #4e1668;
$custom-light: #835a94;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1668",
  "rgb": {
    "r": 78,
    "g": 22,
    "b": 104
  },
  "hsl": {
    "h": 280.976,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.33496,
    "c": 0.13802,
    "h": 312.4
  },
  "luminance": 0.03193
}

Semantic roles & 50–950 ramp

primary
#4E1668
secondary
#5B9F3B
accent
#E84075
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E1668

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

Preview Lab → · Contrast checker → · Palette generator →

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