#4E1665#4E1665

#4E1665 is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.3% C 0.135 H 313.9°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#4E1665
RGBrgb(78, 22, 101)
HSLhsl(283, 64%, 24%)
HSVhsv(283, 78%, 40%)
CMYKcmyk(22.8%, 78.2%, 0%, 60.4%)
CIE-LABlab(20.57, 38.96, -34.44)
CIE-LCHlch(20.57, 52.00, 318.53°)
OKLaboklab(33.26% 0.0936 -0.0972)
OKLCHoklch(33.26% 0.135 313.9)
XYZxyz(5.7774, 3.1333, 12.6098)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1665 #2D6516
analogous
#271665 #4E1665 #651655
triadic
#4E1665 #654E16 #16654E
tetradic
#4E1665 #652716 #2D6516 #165565
square
#4E1665 #652716 #2D6516 #165565
split-complementary
#4E1665 #556516 #166527
monochromatic
#130519 #270B33 #4E1665 #752197 #9C2CCA

Accessibility & contrast

On white

12.91
#4E1665 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#4E1665 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1665
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1665#FFFFFF#000000##FFFFFF
##4E16651.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F67
Deuteranopia (green-blind)
#103363
Tritanopia (blue-blind)
#4C273C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e1665;
/* rgb */ color: rgb(78, 22, 101);
/* oklch */ color: oklch(33.3% 0.135 313.9);
Tailwind
colors: {
  custom: {
    50: '#835a91',
    500: '#4e1665',
    950: '#000000',
  },
}
SCSS
$custom: #4e1665;
$custom-light: #835a91;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1665",
  "rgb": {
    "r": 78,
    "g": 22,
    "b": 101
  },
  "hsl": {
    "h": 282.532,
    "s": 64.228,
    "l": 24.118
  },
  "oklch": {
    "l": 0.33258,
    "c": 0.13496,
    "h": 313.9
  },
  "luminance": 0.03133
}

Semantic roles & 50–950 ramp

primary
#4E1665
secondary
#579C3B
accent
#E74171
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E1665

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

Preview Lab → · Contrast checker → · Palette generator →

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