#4D155C#4D155C

#4D155C is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.3% C 0.127 H 318.2°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#4D155C
RGBrgb(77, 21, 92)
HSLhsl(287, 63%, 22%)
HSVhsv(287, 77%, 36%)
CMYKcmyk(16.3%, 77.2%, 0%, 63.9%)
CIE-LABlab(19.59, 37.15, -30.08)
CIE-LCHlch(19.59, 47.80, 321.01°)
OKLaboklab(32.31% 0.0945 -0.0844)
OKLCHoklch(32.31% 0.127 318.2)
XYZxyz(5.2602, 2.8871, 10.4033)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D155C #245C15
analogous
#2A155C #4D155C #5C1548
triadic
#4D155C #5C4D15 #155C4D
tetradic
#4D155C #5C2A15 #245C15 #15485C
square
#4D155C #5C2A15 #245C15 #15485C
split-complementary
#4D155C #485C15 #155C2A
monochromatic
#150619 #230A2A #4D155C #77208E #A02CC0

Accessibility & contrast

On white

13.31
#4D155C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D155C
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D155C#FFFFFF#000000##FFFFFF
##4D155C1.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5E
Deuteranopia (green-blind)
#18315A
Tritanopia (blue-blind)
#4D2337
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4d155c;
/* rgb */ color: rgb(77, 21, 92);
/* oklch */ color: oklch(32.3% 0.127 318.2);
Tailwind
colors: {
  custom: {
    50: '#82598b',
    500: '#4d155c',
    950: '#000000',
  },
}
SCSS
$custom: #4d155c;
$custom-light: #82598b;
$custom-dark: #000000;
JSON
{
  "hex": "#4d155c",
  "rgb": {
    "r": 77,
    "g": 21,
    "b": 92
  },
  "hsl": {
    "h": 287.324,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32313,
    "c": 0.1267,
    "h": 318.2
  },
  "luminance": 0.02887
}

Semantic roles & 50–950 ramp

primary
#4D155C
secondary
#4C9339
accent
#E64265
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4D155C

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

Preview Lab → · Contrast checker → · Palette generator →

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