#4D185C#4D185C

#4D185C is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.7% C 0.123 H 317.9°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#4D185C
RGBrgb(77, 24, 92)
HSLhsl(287, 59%, 23%)
HSVhsv(287, 74%, 36%)
CMYKcmyk(16.3%, 73.9%, 0%, 63.9%)
CIE-LABlab(20.06, 35.82, -29.32)
CIE-LCHlch(20.06, 46.28, 320.70°)
OKLaboklab(32.65% 0.091 -0.0822)
OKLCHoklch(32.65% 0.123 317.9)
XYZxyz(5.3187, 3.0040, 10.4228)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D185C #275C18
analogous
#2B185C #4D185C #5C1849
triadic
#4D185C #5C4D18 #185C4D
tetradic
#4D185C #5C2B18 #275C18 #18495C
square
#4D185C #5C2B18 #275C18 #18495C
split-complementary
#4D185C #495C18 #185C2B
monochromatic
#140618 #240B2B #4D185C #76258D #9E31BD

Accessibility & contrast

On white

13.12
#4D185C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#4D185C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D185C
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D185C#FFFFFF#000000##FFFFFF
##4D185C1.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5E
Deuteranopia (green-blind)
#1B325A
Tritanopia (blue-blind)
#4D2538
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4d185c;
/* rgb */ color: rgb(77, 24, 92);
/* oklch */ color: oklch(32.7% 0.123 317.9);
Tailwind
colors: {
  custom: {
    50: '#815a8a',
    500: '#4d185c',
    950: '#000000',
  },
}
SCSS
$custom: #4d185c;
$custom-light: #815a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d185c",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 92
  },
  "hsl": {
    "h": 286.765,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.32651,
    "c": 0.12263,
    "h": 317.9
  },
  "luminance": 0.03004
}

Semantic roles & 50–950 ramp

primary
#4D185C
secondary
#50933D
accent
#E24668
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4D185C

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

Preview Lab → · Contrast checker → · Palette generator →

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