#4D155B#4D155B

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

Color values

HEX#4D155B
RGBrgb(77, 21, 91)
HSLhsl(288, 63%, 22%)
HSVhsv(288, 77%, 36%)
CMYKcmyk(15.4%, 76.9%, 0%, 64.3%)
CIE-LABlab(19.51, 36.94, -29.53)
CIE-LCHlch(19.51, 47.29, 321.36°)
OKLaboklab(32.24% 0.0946 -0.0828)
OKLCHoklch(32.24% 0.126 318.8)
XYZxyz(5.2168, 2.8697, 10.1746)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D155B #235B15
analogous
#2A155B #4D155B #5B1546
triadic
#4D155B #5B4D15 #155B4D
tetradic
#4D155B #5B2A15 #235B15 #15465B
square
#4D155B #5B2A15 #235B15 #15465B
split-complementary
#4D155B #465B15 #155B2A
monochromatic
#150619 #230A29 #4D155B #77208D #A12CBE

Accessibility & contrast

On white

13.34
#4D155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D155B
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D155B#FFFFFF#000000##FFFFFF
##4D155B1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5D
Deuteranopia (green-blind)
#193159
Tritanopia (blue-blind)
#4D2336
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4d155b;
/* rgb */ color: rgb(77, 21, 91);
/* oklch */ color: oklch(32.2% 0.126 318.8);
Tailwind
colors: {
  custom: {
    50: '#82598a',
    500: '#4d155b',
    950: '#000000',
  },
}
SCSS
$custom: #4d155b;
$custom-light: #82598a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d155b",
  "rgb": {
    "r": 77,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 288,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32239,
    "c": 0.12571,
    "h": 318.8
  },
  "luminance": 0.02869
}

Semantic roles & 50–950 ramp

primary
#4D155B
secondary
#4B9239
accent
#E64263
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4D155B

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

Preview Lab → · Contrast checker → · Palette generator →

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