#4E1971#4E1971

#4E1971 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.144 H 307.9°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#4E1971
RGBrgb(78, 25, 113)
HSLhsl(276, 64%, 27%)
HSVhsv(276, 78%, 44%)
CMYKcmyk(31%, 77.9%, 0%, 55.7%)
CIE-LABlab(21.97, 40.48, -39.98)
CIE-LCHlch(21.97, 56.89, 315.36°)
OKLaboklab(34.55% 0.0883 -0.1135)
OKLCHoklch(34.55% 0.144 307.9)
XYZxyz(6.4695, 3.5073, 15.9557)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1971 #3C7119
analogous
#221971 #4E1971 #711968
triadic
#4E1971 #714E19 #19714E
tetradic
#4E1971 #712219 #3C7119 #196871
square
#4E1971 #712219 #3C7119 #196871
split-complementary
#4E1971 #687119 #197122
monochromatic
#110619 #2B0E3F #4E1971 #7124A3 #9233D2

Accessibility & contrast

On white

12.34
#4E1971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4E1971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1971
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1971#FFFFFF#000000##FFFFFF
##4E19711.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#00356F
Tritanopia (blue-blind)
#482E44
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e1971;
/* rgb */ color: rgb(78, 25, 113);
/* oklch */ color: oklch(34.5% 0.144 307.9);
Tailwind
colors: {
  custom: {
    50: '#845c9a',
    500: '#4e1971',
    950: '#000000',
  },
}
SCSS
$custom: #4e1971;
$custom-light: #845c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1971",
  "rgb": {
    "r": 78,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 276.136,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.34548,
    "c": 0.14382,
    "h": 307.9
  },
  "luminance": 0.03507
}

Semantic roles & 50–950 ramp

primary
#4E1971
secondary
#68A640
accent
#E74183
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1971

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

Preview Lab → · Contrast checker → · Palette generator →

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