#4D185A#4D185A

#4D185A is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.5% C 0.121 H 319.1°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#4D185A
RGBrgb(77, 24, 90)
HSLhsl(288, 58%, 22%)
HSVhsv(288, 73%, 35%)
CMYKcmyk(14.4%, 73.3%, 0%, 64.7%)
CIE-LABlab(19.92, 35.37, -28.21)
CIE-LCHlch(19.92, 45.24, 321.43°)
OKLaboklab(32.51% 0.0911 -0.079)
OKLCHoklch(32.51% 0.121 319.1)
XYZxyz(5.2324, 2.9695, 9.9684)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D185A #255A18
analogous
#2C185A #4D185A #5A1846
triadic
#4D185A #5A4D18 #185A4D
tetradic
#4D185A #5A2C18 #255A18 #18465A
square
#4D185A #5A2C18 #255A18 #18465A
split-complementary
#4D185A #465A18 #185A2C
monochromatic
#150618 #240B2A #4D185A #76258A #A032BB

Accessibility & contrast

On white

13.18
#4D185A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#4D185A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D185A
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D185A#FFFFFF#000000##FFFFFF
##4D185A1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5C
Deuteranopia (green-blind)
#1C3258
Tritanopia (blue-blind)
#4D2437
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4d185a;
/* rgb */ color: rgb(77, 24, 90);
/* oklch */ color: oklch(32.5% 0.121 319.1);
Tailwind
colors: {
  custom: {
    50: '#815a89',
    500: '#4d185a',
    950: '#000000',
  },
}
SCSS
$custom: #4d185a;
$custom-light: #815a89;
$custom-dark: #000000;
JSON
{
  "hex": "#4d185a",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 90
  },
  "hsl": {
    "h": 288.182,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32508,
    "c": 0.12056,
    "h": 319.1
  },
  "luminance": 0.02969
}

Semantic roles & 50–950 ramp

primary
#4D185A
secondary
#4E913D
accent
#E14765
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4D185A

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

Preview Lab → · Contrast checker → · Palette generator →

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