#4D1766#4D1766

#4D1766 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.3% C 0.134 H 312.6°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#4D1766
RGBrgb(77, 23, 102)
HSLhsl(281, 63%, 25%)
HSVhsv(281, 77%, 40%)
CMYKcmyk(24.5%, 77.5%, 0%, 60%)
CIE-LABlab(20.63, 38.54, -34.99)
CIE-LCHlch(20.63, 52.06, 317.76°)
OKLaboklab(33.3% 0.091 -0.0989)
OKLCHoklch(33.3% 0.134 312.6)
XYZxyz(5.7648, 3.1500, 12.8721)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1766 #306617
analogous
#261766 #4D1766 #661758
triadic
#4D1766 #664D17 #17664D
tetradic
#4D1766 #662617 #306617 #175866
square
#4D1766 #662617 #306617 #175866
split-complementary
#4D1766 #586617 #176626
monochromatic
#130619 #270C34 #4D1766 #732298 #982ECA

Accessibility & contrast

On white

12.88
#4D1766 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1766
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1766#FFFFFF#000000##FFFFFF
##4D17661.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F68
Deuteranopia (green-blind)
#0E3364
Tritanopia (blue-blind)
#4A293D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4d1766;
/* rgb */ color: rgb(77, 23, 102);
/* oklch */ color: oklch(33.3% 0.134 312.6);
Tailwind
colors: {
  custom: {
    50: '#825a92',
    500: '#4d1766',
    950: '#000000',
  },
}
SCSS
$custom: #4d1766;
$custom-light: #825a92;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1766",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 102
  },
  "hsl": {
    "h": 281.013,
    "s": 63.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.33295,
    "c": 0.13437,
    "h": 312.6
  },
  "luminance": 0.0315
}

Semantic roles & 50–950 ramp

primary
#4D1766
secondary
#5B9C3C
accent
#E64276
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4D1766

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

Preview Lab → · Contrast checker → · Palette generator →

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