#4D2A71#4D2A71

#4D2A71 is a dark, moderate violet. Relative luminance 0.044; OKLCH L 36.7% C 0.119 H 303.8°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#4D2A71
RGBrgb(77, 42, 113)
HSLhsl(270, 46%, 30%)
HSVhsv(270, 63%, 44%)
CMYKcmyk(31.9%, 62.8%, 0%, 55.7%)
CIE-LABlab(25.03, 31.40, -35.04)
CIE-LCHlch(25.03, 47.05, 311.86°)
OKLaboklab(36.72% 0.0664 -0.0991)
OKLCHoklch(36.72% 0.119 303.8)
XYZxyz(6.8685, 4.4260, 16.1120)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2A71 #4E712A
analogous
#2A2B71 #4D2A71 #702A71
triadic
#4D2A71 #714D2A #2A714D
tetradic
#4D2A71 #712A2B #4E712A #2A7170
square
#4D2A71 #712A2B #4E712A #2A7170
split-complementary
#4D2A71 #71702A #2B712A
monochromatic
#100918 #2F1944 #4D2A71 #6B3B9E #8A55C0

Accessibility & contrast

On white

11.14
#4D2A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4D2A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2A71
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2A71#FFFFFF#000000##FFFFFF
##4D2A711.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063B73
Deuteranopia (green-blind)
#193B6F
Tritanopia (blue-blind)
#463849
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4d2a71;
/* rgb */ color: rgb(77, 42, 113);
/* oklch */ color: oklch(36.7% 0.119 303.8);
Tailwind
colors: {
  custom: {
    50: '#82659a',
    500: '#4d2a71',
    950: '#000000',
  },
}
SCSS
$custom: #4d2a71;
$custom-light: #82659a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2a71",
  "rgb": {
    "r": 77,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 269.577,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36716,
    "c": 0.11929,
    "h": 303.8
  },
  "luminance": 0.04426
}

Semantic roles & 50–950 ramp

primary
#4D2A71
secondary
#7CA354
accent
#D55295
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4D2A71

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

Preview Lab → · Contrast checker → · Palette generator →

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