#4D155F#4D155F

#4D155F is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.5% C 0.130 H 316.5°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#4D155F
RGBrgb(77, 21, 95)
HSLhsl(285, 64%, 23%)
HSVhsv(285, 78%, 37%)
CMYKcmyk(18.9%, 77.9%, 0%, 62.7%)
CIE-LABlab(19.80, 37.81, -31.72)
CIE-LCHlch(19.80, 49.36, 320.01°)
OKLaboklab(32.54% 0.0941 -0.0893)
OKLCHoklch(32.54% 0.13 316.5)
XYZxyz(5.3940, 2.9406, 11.1077)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D155F #275F15
analogous
#28155F #4D155F #5F154C
triadic
#4D155F #5F4D15 #155F4D
tetradic
#4D155F #5F2815 #275F15 #154C5F
square
#4D155F #5F2815 #275F15 #154C5F
split-complementary
#4D155F #4C5F15 #155F28
monochromatic
#140619 #240A2D #4D155F #762091 #9E2BC3

Accessibility & contrast

On white

13.22
#4D155F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#4D155F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D155F
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D155F#FFFFFF#000000##FFFFFF
##4D155F1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D61
Deuteranopia (green-blind)
#15315D
Tritanopia (blue-blind)
#4C2439
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4d155f;
/* rgb */ color: rgb(77, 21, 95);
/* oklch */ color: oklch(32.5% 0.130 316.5);
Tailwind
colors: {
  custom: {
    50: '#82598d',
    500: '#4d155f',
    950: '#000000',
  },
}
SCSS
$custom: #4d155f;
$custom-light: #82598d;
$custom-dark: #000000;
JSON
{
  "hex": "#4d155f",
  "rgb": {
    "r": 77,
    "g": 21,
    "b": 95
  },
  "hsl": {
    "h": 285.405,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.32538,
    "c": 0.12972,
    "h": 316.5
  },
  "luminance": 0.0294
}

Semantic roles & 50–950 ramp

primary
#4D155F
secondary
#50963A
accent
#E74169
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4D155F

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

Preview Lab → · Contrast checker → · Palette generator →

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