#4D1251#4D1251

#4D1251 is a dark, moderate purple. Relative luminance 0.026; OKLCH L 31.2% C 0.120 H 325.2°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#4D1251
RGBrgb(77, 18, 81)
HSLhsl(296, 64%, 19%)
HSVhsv(296, 78%, 32%)
CMYKcmyk(4.9%, 77.8%, 0%, 68.2%)
CIE-LABlab(18.39, 36.11, -24.60)
CIE-LCHlch(18.39, 43.69, 325.73°)
OKLaboklab(31.21% 0.0985 -0.0684)
OKLCHoklch(31.21% 0.12 325.2)
XYZxyz(4.7620, 2.6048, 8.0349)
Luminance0.0260 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1251 #165112
analogous
#2E1251 #4D1251 #511236
triadic
#4D1251 #514D12 #12514D
tetradic
#4D1251 #512E12 #165112 #123651
square
#4D1251 #512E12 #165112 #123651
split-complementary
#4D1251 #365112 #12512E
monochromatic
#180619 #1D071F #4D1251 #7D1D83 #AC28B5

Accessibility & contrast

On white

13.81
#4D1251 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#4D1251 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1251
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1251#FFFFFF#000000##FFFFFF
##4D12511.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032853
Deuteranopia (green-blind)
#1F2F4F
Tritanopia (blue-blind)
#4F1D30
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4d1251;
/* rgb */ color: rgb(77, 18, 81);
/* oklch */ color: oklch(31.2% 0.120 325.2);
Tailwind
colors: {
  custom: {
    50: '#815782',
    500: '#4d1251',
    950: '#000000',
  },
}
SCSS
$custom: #4d1251;
$custom-light: #815782;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1251",
  "rgb": {
    "r": 77,
    "g": 18,
    "b": 81
  },
  "hsl": {
    "h": 296.19,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.31213,
    "c": 0.11995,
    "h": 325.2
  },
  "luminance": 0.02604
}

Semantic roles & 50–950 ramp

primary
#4D1251
secondary
#3A8A35
accent
#E7414C
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4D1251

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

Preview Lab → · Contrast checker → · Palette generator →

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