#4D1871#4D1871

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

Color values

HEX#4D1871
RGBrgb(77, 24, 113)
HSLhsl(276, 65%, 27%)
HSVhsv(276, 79%, 44%)
CMYKcmyk(31.9%, 78.8%, 0%, 55.7%)
CIE-LABlab(21.67, 40.72, -40.48)
CIE-LCHlch(21.67, 57.41, 315.17°)
OKLaboklab(34.3% 0.0878 -0.115)
OKLCHoklch(34.3% 0.145 307.4)
XYZxyz(6.3672, 3.4234, 15.9449)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1871 #3C7118
analogous
#201871 #4D1871 #711869
triadic
#4D1871 #714D18 #18714D
tetradic
#4D1871 #712018 #3C7118 #186971
square
#4D1871 #712018 #3C7118 #186971
split-complementary
#4D1871 #697118 #187120
monochromatic
#110519 #2B0D3F #4D1871 #6F23A3 #9130D3

Accessibility & contrast

On white

12.47
#4D1871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4D1871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1871
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1871#FFFFFF#000000##FFFFFF
##4D18711.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d1871;
/* rgb */ color: rgb(77, 24, 113);
/* oklch */ color: oklch(34.3% 0.145 307.4);
Tailwind
colors: {
  custom: {
    50: '#835b9a',
    500: '#4d1871',
    950: '#000000',
  },
}
SCSS
$custom: #4d1871;
$custom-light: #835b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1871",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 275.73,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.343,
    "c": 0.14472,
    "h": 307.4
  },
  "luminance": 0.03423
}

Semantic roles & 50–950 ramp

primary
#4D1871
secondary
#68A63E
accent
#E84084
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D1871

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

Preview Lab → · Contrast checker → · Palette generator →

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