#4D155A#4D155A

#4D155A is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.2% C 0.125 H 319.4°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#4D155A
RGBrgb(77, 21, 90)
HSLhsl(289, 62%, 22%)
HSVhsv(289, 77%, 35%)
CMYKcmyk(14.4%, 76.7%, 0%, 64.7%)
CIE-LABlab(19.44, 36.72, -28.97)
CIE-LCHlch(19.44, 46.78, 321.73°)
OKLaboklab(32.17% 0.0946 -0.0812)
OKLCHoklch(32.17% 0.125 319.4)
XYZxyz(5.1740, 2.8525, 9.9489)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D155A #225A15
analogous
#2B155A #4D155A #5A1545
triadic
#4D155A #5A4D15 #155A4D
tetradic
#4D155A #5A2B15 #225A15 #15455A
square
#4D155A #5A2B15 #225A15 #15455A
split-complementary
#4D155A #455A15 #155A2B
monochromatic
#150619 #230928 #4D155A #77218C #A22CBD

Accessibility & contrast

On white

13.37
#4D155A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#4D155A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D155A
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D155A#FFFFFF#000000##FFFFFF
##4D155A1.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5C
Deuteranopia (green-blind)
#1A3158
Tritanopia (blue-blind)
#4D2236
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4d155a;
/* rgb */ color: rgb(77, 21, 90);
/* oklch */ color: oklch(32.2% 0.125 319.4);
Tailwind
colors: {
  custom: {
    50: '#815889',
    500: '#4d155a',
    950: '#000000',
  },
}
SCSS
$custom: #4d155a;
$custom-light: #815889;
$custom-dark: #000000;
JSON
{
  "hex": "#4d155a",
  "rgb": {
    "r": 77,
    "g": 21,
    "b": 90
  },
  "hsl": {
    "h": 288.696,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.32166,
    "c": 0.12471,
    "h": 319.4
  },
  "luminance": 0.02852
}

Semantic roles & 50–950 ramp

primary
#4D155A
secondary
#4A9239
accent
#E54361
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4D155A

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

Preview Lab → · Contrast checker → · Palette generator →

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