#4E1681#4E1681

#4E1681 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.164 H 302.0°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#4E1681
RGBrgb(78, 22, 129)
HSLhsl(271, 71%, 30%)
HSVhsv(271, 83%, 51%)
CMYKcmyk(39.5%, 82.9%, 0%, 49.4%)
CIE-LABlab(22.93, 45.63, -48.63)
CIE-LCHlch(22.93, 66.69, 313.17°)
OKLaboklab(35.65% 0.0868 -0.1389)
OKLCHoklch(35.65% 0.164 302)
XYZxyz(7.3903, 3.7785, 21.1046)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1681 #498116
analogous
#191681 #4E1681 #81167F
triadic
#4E1681 #814E16 #16814E
tetradic
#4E1681 #811916 #498116 #167F81
square
#4E1681 #811916 #498116 #167F81
split-complementary
#4E1681 #7F8116 #168119
monochromatic
#10041A #2E0D4D #4E1681 #6E1FB5 #8D35DD

Accessibility & contrast

On white

11.96
#4E1681 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4E1681 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1681
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1681#FFFFFF#000000##FFFFFF
##4E16811.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#00367F
Tritanopia (blue-blind)
#43344C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e1681;
/* rgb */ color: rgb(78, 22, 129);
/* oklch */ color: oklch(35.6% 0.164 302.0);
Tailwind
colors: {
  custom: {
    50: '#855ba6',
    500: '#4e1681',
    950: '#000000',
  },
}
SCSS
$custom: #4e1681;
$custom-light: #855ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1681",
  "rgb": {
    "r": 78,
    "g": 22,
    "b": 129
  },
  "hsl": {
    "h": 271.402,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35646,
    "c": 0.16381,
    "h": 302
  },
  "luminance": 0.03778
}

Semantic roles & 50–950 ramp

primary
#4E1681
secondary
#77B63D
accent
#EE3A90
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4E1681

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

Preview Lab → · Contrast checker → · Palette generator →

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