#4D185E#4D185E

#4D185E is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.8% C 0.125 H 316.7°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#4D185E
RGBrgb(77, 24, 94)
HSLhsl(285, 59%, 23%)
HSVhsv(285, 74%, 37%)
CMYKcmyk(18.1%, 74.5%, 0%, 63.1%)
CIE-LABlab(20.20, 36.26, -30.42)
CIE-LCHlch(20.20, 47.33, 320.01°)
OKLaboklab(32.8% 0.0908 -0.0855)
OKLCHoklch(32.8% 0.125 316.7)
XYZxyz(5.4073, 3.0394, 10.8893)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D185E #295E18
analogous
#2A185E #4D185E #5E184C
triadic
#4D185E #5E4D18 #185E4D
tetradic
#4D185E #5E2A18 #295E18 #184C5E
square
#4D185E #5E2A18 #295E18 #184C5E
split-complementary
#4D185E #4C5E18 #185E2A
monochromatic
#140618 #250C2D #4D185E #75248F #9D31C0

Accessibility & contrast

On white

13.06
#4D185E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#4D185E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D185E
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D185E#FFFFFF#000000##FFFFFF
##4D185E1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E60
Deuteranopia (green-blind)
#19325C
Tritanopia (blue-blind)
#4C2639
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4d185e;
/* rgb */ color: rgb(77, 24, 94);
/* oklch */ color: oklch(32.8% 0.125 316.7);
Tailwind
colors: {
  custom: {
    50: '#815a8c',
    500: '#4d185e',
    950: '#000000',
  },
}
SCSS
$custom: #4d185e;
$custom-light: #815a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#4d185e",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 94
  },
  "hsl": {
    "h": 285.429,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.32798,
    "c": 0.12471,
    "h": 316.7
  },
  "luminance": 0.03039
}

Semantic roles & 50–950 ramp

primary
#4D185E
secondary
#52943D
accent
#E3456B
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4D185E

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

Preview Lab → · Contrast checker → · Palette generator →

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