#4D2D71#4D2D71

#4D2D71 is a dark, moderate violet. Relative luminance 0.046; OKLCH L 37.2% C 0.114 H 303.0°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#4D2D71
RGBrgb(77, 45, 113)
HSLhsl(268, 43%, 31%)
HSVhsv(268, 60%, 44%)
CMYKcmyk(31.9%, 60.2%, 0%, 55.7%)
CIE-LABlab(25.70, 29.61, -33.96)
CIE-LCHlch(25.70, 45.06, 311.09°)
OKLaboklab(37.21% 0.0622 -0.096)
OKLCHoklch(37.21% 0.114 303)
XYZxyz(6.9789, 4.6468, 16.1488)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2D71 #51712D
analogous
#2D2F71 #4D2D71 #6F2D71
triadic
#4D2D71 #714D2D #2D714D
tetradic
#4D2D71 #712D2F #51712D #2D716F
square
#4D2D71 #712D2F #51712D #2D716F
split-complementary
#4D2D71 #716F2D #2F712D
monochromatic
#110A19 #2F1C45 #4D2D71 #6B3E9D #895BBE

Accessibility & contrast

On white

10.88
#4D2D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#4D2D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2D71
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2D71#FFFFFF#000000##FFFFFF
##4D2D711.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103C73
Deuteranopia (green-blind)
#1D3D6F
Tritanopia (blue-blind)
#463A4A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4d2d71;
/* rgb */ color: rgb(77, 45, 113);
/* oklch */ color: oklch(37.2% 0.114 303.0);
Tailwind
colors: {
  custom: {
    50: '#81679a',
    500: '#4d2d71',
    950: '#000000',
  },
}
SCSS
$custom: #4d2d71;
$custom-light: #81679a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2d71",
  "rgb": {
    "r": 77,
    "g": 45,
    "b": 113
  },
  "hsl": {
    "h": 268.235,
    "s": 43.038,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37206,
    "c": 0.11438,
    "h": 303
  },
  "luminance": 0.04647
}

Semantic roles & 50–950 ramp

primary
#4D2D71
secondary
#7FA357
accent
#D35598
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4D2D71

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

Preview Lab → · Contrast checker → · Palette generator →

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