#4D1167#4D1167

#4D1167 is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.8% C 0.142 H 312.8°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#4D1167
RGBrgb(77, 17, 103)
HSLhsl(282, 72%, 24%)
HSVhsv(282, 83%, 40%)
CMYKcmyk(25.2%, 83.5%, 0%, 59.6%)
CIE-LABlab(19.88, 41.18, -36.88)
CIE-LCHlch(19.88, 55.28, 318.15°)
OKLaboklab(32.78% 0.0967 -0.1044)
OKLCHoklch(32.78% 0.142 312.8)
XYZxyz(5.7088, 2.9581, 13.0996)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1167 #2B6711
analogous
#221167 #4D1167 #671156
triadic
#4D1167 #674D11 #11674D
tetradic
#4D1167 #672211 #2B6711 #115667
square
#4D1167 #672211 #2B6711 #115667
split-complementary
#4D1167 #566711 #116722
monochromatic
#14041A #260832 #4D1167 #741A9C #9C22D0

Accessibility & contrast

On white

13.19
#4D1167 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#4D1167 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1167
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1167#FFFFFF#000000##FFFFFF
##4D11671.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D69
Deuteranopia (green-blind)
#043165
Tritanopia (blue-blind)
#4A263C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4d1167;
/* rgb */ color: rgb(77, 17, 103);
/* oklch */ color: oklch(32.8% 0.142 312.8);
Tailwind
colors: {
  custom: {
    50: '#825793',
    500: '#4d1167',
    950: '#000000',
  },
}
SCSS
$custom: #4d1167;
$custom-light: #825793;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1167",
  "rgb": {
    "r": 77,
    "g": 17,
    "b": 103
  },
  "hsl": {
    "h": 281.86,
    "s": 71.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.32784,
    "c": 0.14227,
    "h": 312.8
  },
  "luminance": 0.02958
}

Semantic roles & 50–950 ramp

primary
#4D1167
secondary
#559F35
accent
#EE3970
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4D1167

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

Preview Lab → · Contrast checker → · Palette generator →

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