#4E1771#4E1771

#4E1771 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.146 H 308.2°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#4E1771
RGBrgb(78, 23, 113)
HSLhsl(277, 66%, 27%)
HSVhsv(277, 80%, 44%)
CMYKcmyk(31%, 79.6%, 0%, 55.7%)
CIE-LABlab(21.67, 41.34, -40.46)
CIE-LCHlch(21.67, 57.85, 315.62°)
OKLaboklab(34.34% 0.0903 -0.1149)
OKLCHoklch(34.34% 0.146 308.2)
XYZxyz(6.4283, 3.4248, 15.9420)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1771 #3A7117
analogous
#211771 #4E1771 #711767
triadic
#4E1771 #714E17 #17714E
tetradic
#4E1771 #712117 #3A7117 #176771
square
#4E1771 #712117 #3A7117 #176771
split-complementary
#4E1771 #677117 #177121
monochromatic
#120519 #2B0D3E #4E1771 #7121A4 #942ED4

Accessibility & contrast

On white

12.46
#4E1771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4E1771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1771
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1771#FFFFFF#000000##FFFFFF
##4E17711.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#00346F
Tritanopia (blue-blind)
#482D43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e1771;
/* rgb */ color: rgb(78, 23, 113);
/* oklch */ color: oklch(34.3% 0.146 308.2);
Tailwind
colors: {
  custom: {
    50: '#845b9a',
    500: '#4e1771',
    950: '#000000',
  },
}
SCSS
$custom: #4e1771;
$custom-light: #845b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1771",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 276.667,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34336,
    "c": 0.14616,
    "h": 308.2
  },
  "luminance": 0.03425
}

Semantic roles & 50–950 ramp

primary
#4E1771
secondary
#66A73D
accent
#E93F81
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1771

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

Preview Lab → · Contrast checker → · Palette generator →

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