#4D1748#4D1748

#4D1748 is a dark, moderate purple. Relative luminance 0.027; OKLCH L 31.2% C 0.104 H 331.6°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#4D1748
RGBrgb(77, 23, 72)
HSLhsl(306, 54%, 20%)
HSVhsv(306, 70%, 30%)
CMYKcmyk(0%, 70.1%, 6.5%, 69.8%)
CIE-LABlab(18.62, 32.14, -18.09)
CIE-LCHlch(18.62, 36.88, 330.63°)
OKLaboklab(31.2% 0.0918 -0.0496)
OKLCHoklch(31.2% 0.104 331.6)
XYZxyz(4.5367, 2.6588, 6.4039)
Luminance0.0266 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1748 #174D1C
analogous
#37174D #4D1748 #4D172D
triadic
#4D1748 #484D17 #17484D
tetradic
#4D1748 #4D3717 #174D1C #172D4D
square
#4D1748 #4D3717 #174D1C #172D4D
split-complementary
#4D1748 #2D4D17 #174D37
monochromatic
#180716 #1E091C #4D1748 #7C2574 #AB33A0

Accessibility & contrast

On white

13.71
#4D1748 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#4D1748 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1748
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1748#FFFFFF#000000##FFFFFF
##4D17481.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142849
Deuteranopia (green-blind)
#273047
Tritanopia (blue-blind)
#501C2D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4d1748;
/* rgb */ color: rgb(77, 23, 72);
/* oklch */ color: oklch(31.2% 0.104 331.6);
Tailwind
colors: {
  custom: {
    50: '#81597b',
    500: '#4d1748',
    950: '#000000',
  },
}
SCSS
$custom: #4d1748;
$custom-light: #81597b;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1748",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 72
  },
  "hsl": {
    "h": 305.556,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.31204,
    "c": 0.10435,
    "h": 331.6
  },
  "luminance": 0.02658
}

Semantic roles & 50–950 ramp

primary
#4D1748
secondary
#3C8442
accent
#DD584A
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A0409
muted
#7C797B

Preview Lab

Preview with #4D1748

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

Preview Lab → · Contrast checker → · Palette generator →

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