#4D1257#4D1257

#4D1257 is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.6% C 0.126 H 321.4°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#4D1257
RGBrgb(77, 18, 87)
HSLhsl(291, 66%, 21%)
HSVhsv(291, 79%, 34%)
CMYKcmyk(11.5%, 79.3%, 0%, 65.9%)
CIE-LABlab(18.79, 37.33, -28.00)
CIE-LCHlch(18.79, 46.67, 323.13°)
OKLaboklab(31.64% 0.0982 -0.0783)
OKLCHoklch(31.64% 0.126 321.4)
XYZxyz(4.9970, 2.6988, 9.2727)
Luminance0.0270 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1257 #1C5712
analogous
#2A1257 #4D1257 #57123E
triadic
#4D1257 #574D12 #12574D
tetradic
#4D1257 #572A12 #1C5712 #123E57
square
#4D1257 #572A12 #1C5712 #123E57
split-complementary
#4D1257 #3E5712 #12572A
monochromatic
#160519 #200824 #4D1257 #7A1C8A #A727BC

Accessibility & contrast

On white

13.64
#4D1257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1257
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1257#FFFFFF#000000##FFFFFF
##4D12571.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A59
Deuteranopia (green-blind)
#1B3055
Tritanopia (blue-blind)
#4E1F33
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4d1257;
/* rgb */ color: rgb(77, 18, 87);
/* oklch */ color: oklch(31.6% 0.126 321.4);
Tailwind
colors: {
  custom: {
    50: '#825787',
    500: '#4d1257',
    950: '#000000',
  },
}
SCSS
$custom: #4d1257;
$custom-light: #825787;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1257",
  "rgb": {
    "r": 77,
    "g": 18,
    "b": 87
  },
  "hsl": {
    "h": 291.304,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31636,
    "c": 0.12562,
    "h": 321.4
  },
  "luminance": 0.02699
}

Semantic roles & 50–950 ramp

primary
#4D1257
secondary
#429035
accent
#E93F58
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4D1257

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

Preview Lab → · Contrast checker → · Palette generator →

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