#4D1168#4D1168

#4D1168 is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.9% C 0.143 H 312.3°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#4D1168
RGBrgb(77, 17, 104)
HSLhsl(281, 72%, 24%)
HSVhsv(281, 84%, 41%)
CMYKcmyk(26%, 83.7%, 0%, 59.2%)
CIE-LABlab(19.96, 41.40, -37.40)
CIE-LCHlch(19.96, 55.79, 317.90°)
OKLaboklab(32.87% 0.0964 -0.1059)
OKLCHoklch(32.87% 0.143 312.3)
XYZxyz(5.7592, 2.9783, 13.3655)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1168 #2C6811
analogous
#211168 #4D1168 #681157
triadic
#4D1168 #684D11 #11684D
tetradic
#4D1168 #682111 #2C6811 #115768
square
#4D1168 #682111 #2C6811 #115768
split-complementary
#4D1168 #576811 #116821
monochromatic
#13041A #260833 #4D1168 #741A9D #9B22D1

Accessibility & contrast

On white

13.16
#4D1168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#4D1168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1168
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1168#FFFFFF#000000##FFFFFF
##4D11681.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6A
Deuteranopia (green-blind)
#023166
Tritanopia (blue-blind)
#4A263D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4d1168;
/* rgb */ color: rgb(77, 17, 104);
/* oklch */ color: oklch(32.9% 0.143 312.3);
Tailwind
colors: {
  custom: {
    50: '#835794',
    500: '#4d1168',
    950: '#000000',
  },
}
SCSS
$custom: #4d1168;
$custom-light: #835794;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1168",
  "rgb": {
    "r": 77,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 281.379,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.32867,
    "c": 0.14325,
    "h": 312.3
  },
  "luminance": 0.02978
}

Semantic roles & 50–950 ramp

primary
#4D1168
secondary
#56A035
accent
#EF3971
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4D1168

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

Preview Lab → · Contrast checker → · Palette generator →

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