#4D1452#4D1452

#4D1452 is a dark, moderate purple. Relative luminance 0.027; OKLCH L 31.5% C 0.118 H 324.4°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#4D1452
RGBrgb(77, 20, 82)
HSLhsl(295, 61%, 20%)
HSVhsv(295, 76%, 32%)
CMYKcmyk(6.1%, 75.6%, 0%, 67.8%)
CIE-LABlab(18.75, 35.48, -24.71)
CIE-LCHlch(18.75, 43.23, 325.15°)
OKLaboklab(31.49% 0.0962 -0.0687)
OKLCHoklch(31.49% 0.118 324.4)
XYZxyz(4.8336, 2.6876, 8.2452)
Luminance0.0269 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1452 #195214
analogous
#2E1452 #4D1452 #521438
triadic
#4D1452 #524D14 #14524D
tetradic
#4D1452 #522E14 #195214 #143852
square
#4D1452 #522E14 #195214 #143852
split-complementary
#4D1452 #385214 #14522E
monochromatic
#170619 #1F0821 #4D1452 #7B2083 #A92CB4

Accessibility & contrast

On white

13.66
#4D1452 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#4D1452 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1452
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1452#FFFFFF#000000##FFFFFF
##4D14521.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052954
Deuteranopia (green-blind)
#1F3050
Tritanopia (blue-blind)
#4F1E31
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4d1452;
/* rgb */ color: rgb(77, 20, 82);
/* oklch */ color: oklch(31.5% 0.118 324.4);
Tailwind
colors: {
  custom: {
    50: '#815883',
    500: '#4d1452',
    950: '#000000',
  },
}
SCSS
$custom: #4d1452;
$custom-light: #815883;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1452",
  "rgb": {
    "r": 77,
    "g": 20,
    "b": 82
  },
  "hsl": {
    "h": 295.161,
    "s": 60.784,
    "l": 20
  },
  "oklch": {
    "l": 0.31492,
    "c": 0.11823,
    "h": 324.4
  },
  "luminance": 0.02687
}

Semantic roles & 50–950 ramp

primary
#4D1452
secondary
#3E8A38
accent
#E44451
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4D1452

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

Preview Lab → · Contrast checker → · Palette generator →

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