#4D155D#4D155D

#4D155D is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.4% C 0.128 H 317.6°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#4D155D
RGBrgb(77, 21, 93)
HSLhsl(287, 63%, 22%)
HSVhsv(287, 77%, 36%)
CMYKcmyk(17.2%, 77.4%, 0%, 63.5%)
CIE-LABlab(19.66, 37.37, -30.63)
CIE-LCHlch(19.66, 48.32, 320.67°)
OKLaboklab(32.39% 0.0944 -0.0861)
OKLCHoklch(32.39% 0.128 317.6)
XYZxyz(5.3042, 2.9047, 10.6351)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D155D #255D15
analogous
#29155D #4D155D #5D1549
triadic
#4D155D #5D4D15 #155D4D
tetradic
#4D155D #5D2915 #255D15 #15495D
square
#4D155D #5D2915 #255D15 #15495D
split-complementary
#4D155D #495D15 #155D29
monochromatic
#150619 #240A2B #4D155D #76208F #A02CC1

Accessibility & contrast

On white

13.28
#4D155D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#4D155D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D155D
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D155D#FFFFFF#000000##FFFFFF
##4D155D1.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5F
Deuteranopia (green-blind)
#17315B
Tritanopia (blue-blind)
#4C2437
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4d155d;
/* rgb */ color: rgb(77, 21, 93);
/* oklch */ color: oklch(32.4% 0.128 317.6);
Tailwind
colors: {
  custom: {
    50: '#82598b',
    500: '#4d155d',
    950: '#000000',
  },
}
SCSS
$custom: #4d155d;
$custom-light: #82598b;
$custom-dark: #000000;
JSON
{
  "hex": "#4d155d",
  "rgb": {
    "r": 77,
    "g": 21,
    "b": 93
  },
  "hsl": {
    "h": 286.667,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32387,
    "c": 0.1277,
    "h": 317.6
  },
  "luminance": 0.02904
}

Semantic roles & 50–950 ramp

primary
#4D155D
secondary
#4E9439
accent
#E64266
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4D155D

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

Preview Lab → · Contrast checker → · Palette generator →

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