#4D185D#4D185D

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

Color values

HEX#4D185D
RGBrgb(77, 24, 93)
HSLhsl(286, 59%, 23%)
HSVhsv(286, 74%, 36%)
CMYKcmyk(17.2%, 74.2%, 0%, 63.5%)
CIE-LABlab(20.13, 36.04, -29.87)
CIE-LCHlch(20.13, 46.81, 320.35°)
OKLaboklab(32.72% 0.0909 -0.0839)
OKLCHoklch(32.72% 0.124 317.3)
XYZxyz(5.3627, 3.0216, 10.6545)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D185D #285D18
analogous
#2A185D #4D185D #5D184A
triadic
#4D185D #5D4D18 #185D4D
tetradic
#4D185D #5D2A18 #285D18 #184A5D
square
#4D185D #5D2A18 #285D18 #184A5D
split-complementary
#4D185D #4A5D18 #185D2A
monochromatic
#140618 #250B2C #4D185D #75258E #9E31BE

Accessibility & contrast

On white

13.09
#4D185D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D185D
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D185D#FFFFFF#000000##FFFFFF
##4D185D1.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5F
Deuteranopia (green-blind)
#1A325B
Tritanopia (blue-blind)
#4C2538
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4d185d;
/* rgb */ color: rgb(77, 24, 93);
/* oklch */ color: oklch(32.7% 0.124 317.3);
Tailwind
colors: {
  custom: {
    50: '#815a8b',
    500: '#4d185d',
    950: '#000000',
  },
}
SCSS
$custom: #4d185d;
$custom-light: #815a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#4d185d",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 93
  },
  "hsl": {
    "h": 286.087,
    "s": 58.974,
    "l": 22.941
  },
  "oklch": {
    "l": 0.32724,
    "c": 0.12367,
    "h": 317.3
  },
  "luminance": 0.03021
}

Semantic roles & 50–950 ramp

primary
#4D185D
secondary
#51933D
accent
#E2466A
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4D185D

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

Preview Lab → · Contrast checker → · Palette generator →

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