#4E1166#4E1166

#4E1166 is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.9% C 0.142 H 314.0°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#4E1166
RGBrgb(78, 17, 102)
HSLhsl(283, 71%, 23%)
HSVhsv(283, 83%, 40%)
CMYKcmyk(23.5%, 83.3%, 0%, 60%)
CIE-LABlab(19.96, 41.15, -36.07)
CIE-LCHlch(19.96, 54.72, 318.76°)
OKLaboklab(32.86% 0.0983 -0.102)
OKLCHoklch(32.86% 0.142 314)
XYZxyz(5.7402, 2.9801, 12.8406)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1166 #296611
analogous
#231166 #4E1166 #661153
triadic
#4E1166 #664E11 #11664E
tetradic
#4E1166 #662311 #296611 #115366
square
#4E1166 #662311 #296611 #115366
split-complementary
#4E1166 #536611 #116623
monochromatic
#14041A #260832 #4E1166 #761A9A #9E22CF

Accessibility & contrast

On white

13.16
#4E1166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#4E1166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1166
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1166#FFFFFF#000000##FFFFFF
##4E11661.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D68
Deuteranopia (green-blind)
#083264
Tritanopia (blue-blind)
#4C253C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4e1166;
/* rgb */ color: rgb(78, 17, 102);
/* oklch */ color: oklch(32.9% 0.142 314.0);
Tailwind
colors: {
  custom: {
    50: '#835892',
    500: '#4e1166',
    950: '#000000',
  },
}
SCSS
$custom: #4e1166;
$custom-light: #835892;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1166",
  "rgb": {
    "r": 78,
    "g": 17,
    "b": 102
  },
  "hsl": {
    "h": 283.059,
    "s": 71.429,
    "l": 23.333
  },
  "oklch": {
    "l": 0.32855,
    "c": 0.14164,
    "h": 314
  },
  "luminance": 0.0298
}

Semantic roles & 50–950 ramp

primary
#4E1166
secondary
#529E35
accent
#EE3A6D
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E1166

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

Preview Lab → · Contrast checker → · Palette generator →

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