#4D1857#4D1857

#4D1857 is a dark, moderate purple. Relative luminance 0.029; OKLCH L 32.3% C 0.117 H 320.9°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#4D1857
RGBrgb(77, 24, 87)
HSLhsl(290, 57%, 22%)
HSVhsv(290, 72%, 34%)
CMYKcmyk(11.5%, 72.4%, 0%, 65.9%)
CIE-LABlab(19.72, 34.72, -26.53)
CIE-LCHlch(19.72, 43.69, 322.62°)
OKLaboklab(32.3% 0.0912 -0.0741)
OKLCHoklch(32.3% 0.117 320.9)
XYZxyz(5.1073, 2.9194, 9.3095)
Luminance0.0292 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1857 #225718
analogous
#2E1857 #4D1857 #571842
triadic
#4D1857 #574D18 #18574D
tetradic
#4D1857 #572E18 #225718 #184257
square
#4D1857 #572E18 #225718 #184257
split-complementary
#4D1857 #425718 #18572E
monochromatic
#150718 #230B27 #4D1857 #772587 #A232B7

Accessibility & contrast

On white

13.26
#4D1857 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#4D1857 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1857
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1857#FFFFFF#000000##FFFFFF
##4D18571.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052C59
Deuteranopia (green-blind)
#1F3255
Tritanopia (blue-blind)
#4E2335
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4d1857;
/* rgb */ color: rgb(77, 24, 87);
/* oklch */ color: oklch(32.3% 0.117 320.9);
Tailwind
colors: {
  custom: {
    50: '#815a87',
    500: '#4d1857',
    950: '#000000',
  },
}
SCSS
$custom: #4d1857;
$custom-light: #815a87;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1857",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 87
  },
  "hsl": {
    "h": 290.476,
    "s": 56.757,
    "l": 21.765
  },
  "oklch": {
    "l": 0.32297,
    "c": 0.11749,
    "h": 320.9
  },
  "luminance": 0.02919
}

Semantic roles & 50–950 ramp

primary
#4D1857
secondary
#4A8E3D
accent
#E04860
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4D1857

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

Preview Lab → · Contrast checker → · Palette generator →

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