#4D2172#4D2172

#4D2172 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.5% C 0.134 H 305.4°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#4D2172
RGBrgb(77, 33, 114)
HSLhsl(273, 55%, 29%)
HSVhsv(273, 71%, 45%)
CMYKcmyk(32.5%, 71.1%, 0%, 55.3%)
CIE-LABlab(23.27, 36.66, -38.52)
CIE-LCHlch(23.27, 53.18, 313.58°)
OKLaboklab(35.47% 0.0778 -0.1093)
OKLCHoklch(35.47% 0.134 305.4)
XYZxyz(6.6410, 3.8804, 16.3155)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2172 #467221
analogous
#252172 #4D2172 #72216F
triadic
#4D2172 #724D21 #21724D
tetradic
#4D2172 #722521 #467221 #216F72
square
#4D2172 #722521 #467221 #216F72
split-complementary
#4D2172 #6F7221 #217225
monochromatic
#100718 #2D1343 #4D2172 #6D2FA1 #8C44C9

Accessibility & contrast

On white

11.82
#4D2172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4D2172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2172
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2172#FFFFFF#000000##FFFFFF
##4D21721.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#073870
Tritanopia (blue-blind)
#463346
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4d2172;
/* rgb */ color: rgb(77, 33, 114);
/* oklch */ color: oklch(35.5% 0.134 305.4);
Tailwind
colors: {
  custom: {
    50: '#82609b',
    500: '#4d2172',
    950: '#000000',
  },
}
SCSS
$custom: #4d2172;
$custom-light: #82609b;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2172",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 272.593,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35467,
    "c": 0.13418,
    "h": 305.4
  },
  "luminance": 0.0388
}

Semantic roles & 50–950 ramp

primary
#4D2172
secondary
#73A549
accent
#DE498D
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4D2172

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

Preview Lab → · Contrast checker → · Palette generator →

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