#4D1256#4D1256

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

Color values

HEX#4D1256
RGBrgb(77, 18, 86)
HSLhsl(292, 65%, 20%)
HSVhsv(292, 79%, 34%)
CMYKcmyk(10.5%, 79.1%, 0%, 66.3%)
CIE-LABlab(18.73, 37.12, -27.44)
CIE-LCHlch(18.73, 46.16, 323.53°)
OKLaboklab(31.56% 0.0983 -0.0767)
OKLCHoklch(31.56% 0.125 322)
XYZxyz(4.9564, 2.6826, 9.0590)
Luminance0.0268 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1256 #1B5612
analogous
#2B1256 #4D1256 #56123D
triadic
#4D1256 #564D12 #12564D
tetradic
#4D1256 #562B12 #1B5612 #123D56
square
#4D1256 #562B12 #1B5612 #123D56
split-complementary
#4D1256 #3D5612 #12562B
monochromatic
#170519 #200723 #4D1256 #7A1D89 #A827BB

Accessibility & contrast

On white

13.67
#4D1256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1256
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1256#FFFFFF#000000##FFFFFF
##4D12561.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002958
Deuteranopia (green-blind)
#1B3054
Tritanopia (blue-blind)
#4E1F33
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4d1256;
/* rgb */ color: rgb(77, 18, 86);
/* oklch */ color: oklch(31.6% 0.125 322.0);
Tailwind
colors: {
  custom: {
    50: '#825786',
    500: '#4d1256',
    950: '#000000',
  },
}
SCSS
$custom: #4d1256;
$custom-light: #825786;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1256",
  "rgb": {
    "r": 77,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 292.059,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.31564,
    "c": 0.12467,
    "h": 322
  },
  "luminance": 0.02682
}

Semantic roles & 50–950 ramp

primary
#4D1256
secondary
#418F35
accent
#E83F56
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #4D1256

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

Preview Lab → · Contrast checker → · Palette generator →

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