#4D1864#4D1864

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

Color values

HEX#4D1864
RGBrgb(77, 24, 100)
HSLhsl(282, 61%, 24%)
HSVhsv(282, 76%, 39%)
CMYKcmyk(23%, 76%, 0%, 60.8%)
CIE-LABlab(20.64, 37.63, -33.67)
CIE-LCHlch(20.64, 50.50, 318.18°)
OKLaboklab(33.25% 0.0902 -0.095)
OKLCHoklch(33.25% 0.131 313.5)
XYZxyz(5.6871, 3.1513, 12.3628)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1864 #2F6418
analogous
#271864 #4D1864 #641855
triadic
#4D1864 #644D18 #18644D
tetradic
#4D1864 #642718 #2F6418 #185564
square
#4D1864 #642718 #2F6418 #185564
split-complementary
#4D1864 #556418 #186427
monochromatic
#130619 #270C33 #4D1864 #732495 #9930C7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4D1864#FFFFFF#000000##FFFFFF
##4D18641.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)
#002F66
Deuteranopia (green-blind)
#123362
Tritanopia (blue-blind)
#4B283C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4d1864;
/* rgb */ color: rgb(77, 24, 100);
/* oklch */ color: oklch(33.3% 0.131 313.5);
Tailwind
colors: {
  custom: {
    50: '#825a91',
    500: '#4d1864',
    950: '#000000',
  },
}
SCSS
$custom: #4d1864;
$custom-light: #825a91;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1864",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 100
  },
  "hsl": {
    "h": 281.842,
    "s": 61.29,
    "l": 24.314
  },
  "oklch": {
    "l": 0.33251,
    "c": 0.13099,
    "h": 313.5
  },
  "luminance": 0.03151
}

Semantic roles & 50–950 ramp

primary
#4D1864
secondary
#5A9A3E
accent
#E44374
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040D
muted
#7C797D

Preview Lab

Preview with #4D1864

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

Preview Lab → · Contrast checker → · Palette generator →

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