#4D1162#4D1162

#4D1162 is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.4% C 0.137 H 315.3°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#4D1162
RGBrgb(77, 17, 98)
HSLhsl(284, 70%, 23%)
HSVhsv(284, 83%, 38%)
CMYKcmyk(21.4%, 82.7%, 0%, 61.6%)
CIE-LABlab(19.48, 40.07, -34.23)
CIE-LCHlch(19.48, 52.70, 319.49°)
OKLaboklab(32.38% 0.0977 -0.0966)
OKLCHoklch(32.38% 0.137 315.3)
XYZxyz(5.4653, 2.8607, 11.8172)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1162 #266211
analogous
#241162 #4D1162 #62114F
triadic
#4D1162 #624D11 #11624D
tetradic
#4D1162 #622411 #266211 #114F62
square
#4D1162 #622411 #266211 #114F62
split-complementary
#4D1162 #4F6211 #116224
monochromatic
#14051A #24082E #4D1162 #761A96 #9F23CA

Accessibility & contrast

On white

13.36
#4D1162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#4D1162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1162
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1162#FFFFFF#000000##FFFFFF
##4D11621.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C64
Deuteranopia (green-blind)
#0E3160
Tritanopia (blue-blind)
#4B2439
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4d1162;
/* rgb */ color: rgb(77, 17, 98);
/* oklch */ color: oklch(32.4% 0.137 315.3);
Tailwind
colors: {
  custom: {
    50: '#82578f',
    500: '#4d1162',
    950: '#000000',
  },
}
SCSS
$custom: #4d1162;
$custom-light: #82578f;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1162",
  "rgb": {
    "r": 77,
    "g": 17,
    "b": 98
  },
  "hsl": {
    "h": 284.444,
    "s": 70.435,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32379,
    "c": 0.13739,
    "h": 315.3
  },
  "luminance": 0.02861
}

Semantic roles & 50–950 ramp

primary
#4D1162
secondary
#4F9A34
accent
#ED3B69
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B030C
muted
#7C787D

Preview Lab

Preview with #4D1162

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

Preview Lab → · Contrast checker → · Palette generator →

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