#4D2152#4D2152

#4D2152 is a dark, moderate purple. Relative luminance 0.033; OKLCH L 33.2% C 0.097 H 323.4°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#4D2152
RGBrgb(77, 33, 82)
HSLhsl(294, 43%, 23%)
HSVhsv(294, 60%, 32%)
CMYKcmyk(6.1%, 59.8%, 0%, 67.8%)
CIE-LABlab(21.11, 28.95, -20.96)
CIE-LCHlch(21.11, 35.75, 324.10°)
OKLaboklab(33.21% 0.0782 -0.058)
OKLCHoklch(33.21% 0.097 323.4)
XYZxyz(5.1273, 3.2749, 8.3431)
Luminance0.0328 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2152 #265221
analogous
#352152 #4D2152 #52213E
triadic
#4D2152 #524D21 #21524D
tetradic
#4D2152 #523521 #265221 #213E52
square
#4D2152 #523521 #265221 #213E52
split-complementary
#4D2152 #3E5221 #215235
monochromatic
#140916 #240F26 #4D2152 #76337E #9F44A9

Accessibility & contrast

On white

12.69
#4D2152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4D2152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2152
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2152#FFFFFF#000000##FFFFFF
##4D21521.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2F54
Deuteranopia (green-blind)
#283551
Tritanopia (blue-blind)
#4E2836
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4d2152;
/* rgb */ color: rgb(77, 33, 82);
/* oklch */ color: oklch(33.2% 0.097 323.4);
Tailwind
colors: {
  custom: {
    50: '#805f83',
    500: '#4d2152',
    950: '#000000',
  },
}
SCSS
$custom: #4d2152;
$custom-light: #805f83;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2152",
  "rgb": {
    "r": 77,
    "g": 33,
    "b": 82
  },
  "hsl": {
    "h": 293.878,
    "s": 42.609,
    "l": 22.549
  },
  "oklch": {
    "l": 0.3321,
    "c": 0.09737,
    "h": 323.4
  },
  "luminance": 0.03275
}

Semantic roles & 50–950 ramp

primary
#4D2152
secondary
#4F8649
accent
#D25562
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0A050A
muted
#7C797C

Preview Lab

Preview with #4D2152

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

Preview Lab → · Contrast checker → · Palette generator →

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