#4E1871#4E1871

#4E1871 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.145 H 308.0°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#4E1871
RGBrgb(78, 24, 113)
HSLhsl(276, 65%, 27%)
HSVhsv(276, 79%, 44%)
CMYKcmyk(31%, 78.8%, 0%, 55.7%)
CIE-LABlab(21.82, 40.92, -40.22)
CIE-LCHlch(21.82, 57.38, 315.49°)
OKLaboklab(34.44% 0.0893 -0.1142)
OKLCHoklch(34.44% 0.145 308)
XYZxyz(6.4485, 3.4653, 15.9487)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1871 #3B7118
analogous
#211871 #4E1871 #711868
triadic
#4E1871 #714E18 #18714E
tetradic
#4E1871 #712118 #3B7118 #186871
square
#4E1871 #712118 #3B7118 #186871
split-complementary
#4E1871 #687118 #187121
monochromatic
#110519 #2B0D3F #4E1871 #7123A3 #9330D3

Accessibility & contrast

On white

12.40
#4E1871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1871
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1871#FFFFFF#000000##FFFFFF
##4E18711.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e1871;
/* rgb */ color: rgb(78, 24, 113);
/* oklch */ color: oklch(34.4% 0.145 308.0);
Tailwind
colors: {
  custom: {
    50: '#845b9a',
    500: '#4e1871',
    950: '#000000',
  },
}
SCSS
$custom: #4e1871;
$custom-light: #845b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1871",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 276.404,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34441,
    "c": 0.145,
    "h": 308
  },
  "luminance": 0.03465
}

Semantic roles & 50–950 ramp

primary
#4E1871
secondary
#67A63E
accent
#E84082
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1871

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

Preview Lab → · Contrast checker → · Palette generator →

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