#4E1766#4E1766

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

Color values

HEX#4E1766
RGBrgb(78, 23, 102)
HSLhsl(282, 63%, 25%)
HSVhsv(282, 77%, 40%)
CMYKcmyk(23.5%, 77.5%, 0%, 60%)
CIE-LABlab(20.80, 38.76, -34.73)
CIE-LCHlch(20.80, 52.04, 318.14°)
OKLaboklab(33.44% 0.0924 -0.0981)
OKLCHoklch(33.44% 0.135 313.3)
XYZxyz(5.8461, 3.1920, 12.8760)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1766 #2F6617
analogous
#271766 #4E1766 #661757
triadic
#4E1766 #664E17 #17664E
tetradic
#4E1766 #662717 #2F6617 #175766
square
#4E1766 #662717 #2F6617 #175766
split-complementary
#4E1766 #576617 #176627
monochromatic
#130619 #280C34 #4E1766 #742298 #9A2ECA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E1766#FFFFFF#000000##FFFFFF
##4E17661.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)
#002F68
Deuteranopia (green-blind)
#103364
Tritanopia (blue-blind)
#4B283D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e1766;
/* rgb */ color: rgb(78, 23, 102);
/* oklch */ color: oklch(33.4% 0.135 313.3);
Tailwind
colors: {
  custom: {
    50: '#835a92',
    500: '#4e1766',
    950: '#000000',
  },
}
SCSS
$custom: #4e1766;
$custom-light: #835a92;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1766",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 102
  },
  "hsl": {
    "h": 281.772,
    "s": 63.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.33444,
    "c": 0.13474,
    "h": 313.3
  },
  "luminance": 0.03192
}

Semantic roles & 50–950 ramp

primary
#4E1766
secondary
#5A9C3C
accent
#E64274
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E1766

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

Preview Lab → · Contrast checker → · Palette generator →

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