#4E1571#4E1571

#4E1571 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.148 H 308.4°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#4E1571
RGBrgb(78, 21, 113)
HSLhsl(277, 69%, 26%)
HSVhsv(277, 81%, 44%)
CMYKcmyk(31%, 81.4%, 0%, 55.7%)
CIE-LABlab(21.39, 42.15, -40.92)
CIE-LCHlch(21.39, 58.75, 315.85°)
OKLaboklab(34.14% 0.0922 -0.1163)
OKLCHoklch(34.14% 0.148 308.4)
XYZxyz(6.3901, 3.3484, 15.9293)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1571 #387115
analogous
#201571 #4E1571 #711566
triadic
#4E1571 #714E15 #15714E
tetradic
#4E1571 #712015 #387115 #156671
square
#4E1571 #712015 #387115 #156671
split-complementary
#4E1571 #667115 #157120
monochromatic
#12051A #2A0B3D #4E1571 #721FA5 #9529D7

Accessibility & contrast

On white

12.58
#4E1571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4E1571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1571
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1571#FFFFFF#000000##FFFFFF
##4E15711.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003174
Deuteranopia (green-blind)
#00346F
Tritanopia (blue-blind)
#482C43
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4e1571;
/* rgb */ color: rgb(78, 21, 113);
/* oklch */ color: oklch(34.1% 0.148 308.4);
Tailwind
colors: {
  custom: {
    50: '#845a9a',
    500: '#4e1571',
    950: '#000000',
  },
}
SCSS
$custom: #4e1571;
$custom-light: #845a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1571",
  "rgb": {
    "r": 78,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 277.174,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34138,
    "c": 0.14837,
    "h": 308.4
  },
  "luminance": 0.03348
}

Semantic roles & 50–950 ramp

primary
#4E1571
secondary
#64A73B
accent
#EB3C7F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1571

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

Preview Lab → · Contrast checker → · Palette generator →

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