#4D2571#4D2571

#4D2571 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 35.9% C 0.127 H 305.0°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#4D2571
RGBrgb(77, 37, 113)
HSLhsl(272, 51%, 29%)
HSVhsv(272, 67%, 44%)
CMYKcmyk(31.9%, 67.3%, 0%, 55.7%)
CIE-LABlab(23.98, 34.25, -36.74)
CIE-LCHlch(23.98, 50.23, 312.99°)
OKLaboklab(35.95% 0.073 -0.1041)
OKLCHoklch(35.95% 0.127 305)
XYZxyz(6.7021, 4.0932, 16.0566)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2571 #497125
analogous
#272571 #4D2571 #71256F
triadic
#4D2571 #714D25 #25714D
tetradic
#4D2571 #712725 #497125 #256F71
square
#4D2571 #712725 #497125 #256F71
split-complementary
#4D2571 #6F7125 #257127
monochromatic
#100817 #2E1643 #4D2571 #6C349F #8B4CC4

Accessibility & contrast

On white

11.55
#4D2571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4D2571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2571
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2571#FFFFFF#000000##FFFFFF
##4D25711.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003873
Deuteranopia (green-blind)
#11396F
Tritanopia (blue-blind)
#473547
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d2571;
/* rgb */ color: rgb(77, 37, 113);
/* oklch */ color: oklch(35.9% 0.127 305.0);
Tailwind
colors: {
  custom: {
    50: '#82629a',
    500: '#4d2571',
    950: '#000000',
  },
}
SCSS
$custom: #4d2571;
$custom-light: #82629a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2571",
  "rgb": {
    "r": 77,
    "g": 37,
    "b": 113
  },
  "hsl": {
    "h": 271.579,
    "s": 50.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3595,
    "c": 0.12713,
    "h": 305
  },
  "luminance": 0.04093
}

Semantic roles & 50–950 ramp

primary
#4D2571
secondary
#77A44E
accent
#DA4E90
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4D2571

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

Preview Lab → · Contrast checker → · Palette generator →

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