#4D1657#4D1657

#4D1657 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.1% C 0.120 H 321.1°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#4D1657
RGBrgb(77, 22, 87)
HSLhsl(291, 60%, 21%)
HSVhsv(291, 75%, 34%)
CMYKcmyk(11.5%, 74.7%, 0%, 65.9%)
CIE-LABlab(19.39, 35.64, -27.05)
CIE-LCHlch(19.39, 44.74, 322.80°)
OKLaboklab(32.06% 0.0936 -0.0756)
OKLCHoklch(32.06% 0.12 321.1)
XYZxyz(5.0676, 2.8400, 9.2962)
Luminance0.0284 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1657 #205716
analogous
#2D1657 #4D1657 #571641
triadic
#4D1657 #574D16 #16574D
tetradic
#4D1657 #572D16 #205716 #164157
square
#4D1657 #572D16 #205716 #164157
split-complementary
#4D1657 #415716 #16572D
monochromatic
#160618 #220A26 #4D1657 #782288 #A32FB9

Accessibility & contrast

On white

13.39
#4D1657 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1657
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1657#FFFFFF#000000##FFFFFF
##4D16571.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012B59
Deuteranopia (green-blind)
#1D3155
Tritanopia (blue-blind)
#4E2234
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4d1657;
/* rgb */ color: rgb(77, 22, 87);
/* oklch */ color: oklch(32.1% 0.120 321.1);
Tailwind
colors: {
  custom: {
    50: '#815987',
    500: '#4d1657',
    950: '#000000',
  },
}
SCSS
$custom: #4d1657;
$custom-light: #815987;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1657",
  "rgb": {
    "r": 77,
    "g": 22,
    "b": 87
  },
  "hsl": {
    "h": 290.769,
    "s": 59.633,
    "l": 21.373
  },
  "oklch": {
    "l": 0.32062,
    "c": 0.12034,
    "h": 321.1
  },
  "luminance": 0.0284
}

Semantic roles & 50–950 ramp

primary
#4D1657
secondary
#478E3A
accent
#E3455D
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4D1657

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

Preview Lab → · Contrast checker → · Palette generator →

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