#4D1767#4D1767

#4D1767 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.4% C 0.135 H 312.1°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#4D1767
RGBrgb(77, 23, 103)
HSLhsl(281, 63%, 25%)
HSVhsv(281, 78%, 40%)
CMYKcmyk(25.2%, 77.7%, 0%, 59.6%)
CIE-LABlab(20.71, 38.77, -35.52)
CIE-LCHlch(20.71, 52.59, 317.50°)
OKLaboklab(33.38% 0.0908 -0.1004)
OKLCHoklch(33.38% 0.135 312.1)
XYZxyz(5.8147, 3.1700, 13.1349)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1767 #316717
analogous
#251767 #4D1767 #671759
triadic
#4D1767 #674D17 #17674D
tetradic
#4D1767 #672517 #316717 #175967
square
#4D1767 #672517 #316717 #175967
split-complementary
#4D1767 #596717 #176725
monochromatic
#130619 #280C35 #4D1767 #722299 #982DCB

Accessibility & contrast

On white

12.85
#4D1767 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#4D1767 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1767
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1767#FFFFFF#000000##FFFFFF
##4D17671.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F69
Deuteranopia (green-blind)
#0C3365
Tritanopia (blue-blind)
#4A293E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4d1767;
/* rgb */ color: rgb(77, 23, 103);
/* oklch */ color: oklch(33.4% 0.135 312.1);
Tailwind
colors: {
  custom: {
    50: '#825a93',
    500: '#4d1767',
    950: '#000000',
  },
}
SCSS
$custom: #4d1767;
$custom-light: #825a93;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1767",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 103
  },
  "hsl": {
    "h": 280.5,
    "s": 63.492,
    "l": 24.706
  },
  "oklch": {
    "l": 0.33375,
    "c": 0.13541,
    "h": 312.1
  },
  "luminance": 0.0317
}

Semantic roles & 50–950 ramp

primary
#4D1767
secondary
#5C9D3D
accent
#E74177
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4D1767

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

Preview Lab → · Contrast checker → · Palette generator →

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