#4D185B#4D185B

#4D185B is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.6% C 0.122 H 318.5°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#4D185B
RGBrgb(77, 24, 91)
HSLhsl(287, 58%, 23%)
HSVhsv(287, 74%, 36%)
CMYKcmyk(15.4%, 73.6%, 0%, 64.3%)
CIE-LABlab(19.99, 35.59, -28.76)
CIE-LCHlch(19.99, 45.76, 321.06°)
OKLaboklab(32.58% 0.091 -0.0806)
OKLCHoklch(32.58% 0.122 318.5)
XYZxyz(5.2753, 2.9866, 10.1941)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D185B #265B18
analogous
#2C185B #4D185B #5B1847
triadic
#4D185B #5B4D18 #185B4D
tetradic
#4D185B #5B2C18 #265B18 #18475B
square
#4D185B #5B2C18 #265B18 #18475B
split-complementary
#4D185B #475B18 #185B2C
monochromatic
#140618 #240B2B #4D185B #76258B #9F32BC

Accessibility & contrast

On white

13.15
#4D185B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D185B
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D185B#FFFFFF#000000##FFFFFF
##4D185B1.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5D
Deuteranopia (green-blind)
#1B3259
Tritanopia (blue-blind)
#4D2537
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4d185b;
/* rgb */ color: rgb(77, 24, 91);
/* oklch */ color: oklch(32.6% 0.122 318.5);
Tailwind
colors: {
  custom: {
    50: '#815a8a',
    500: '#4d185b',
    950: '#000000',
  },
}
SCSS
$custom: #4d185b;
$custom-light: #815a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d185b",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 91
  },
  "hsl": {
    "h": 287.463,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32579,
    "c": 0.1216,
    "h": 318.5
  },
  "luminance": 0.02986
}

Semantic roles & 50–950 ramp

primary
#4D185B
secondary
#4F923D
accent
#E14667
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4D185B

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

Preview Lab → · Contrast checker → · Palette generator →

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