#4D154E#4D154E

#4D154E is a dark, moderate purple. Relative luminance 0.027; OKLCH L 31.3% C 0.113 H 327.1°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#4D154E
RGBrgb(77, 21, 78)
HSLhsl(299, 58%, 19%)
HSVhsv(299, 73%, 31%)
CMYKcmyk(1.3%, 73.1%, 0%, 69.4%)
CIE-LABlab(18.65, 34.23, -22.15)
CIE-LCHlch(18.65, 40.77, 327.10°)
OKLaboklab(31.34% 0.0949 -0.0613)
OKLCHoklch(31.34% 0.113 327.1)
XYZxyz(4.7038, 2.6645, 7.4728)
Luminance0.0266 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D154E #164E15
analogous
#31154E #4D154E #4E1533
triadic
#4D154E #4E4D15 #154E4D
tetradic
#4D154E #4E3115 #164E15 #15334E
square
#4D154E #4E3115 #164E15 #15334E
split-complementary
#4D154E #334E15 #154E31
monochromatic
#180618 #1D081E #4D154E #7D227E #AC2FAE

Accessibility & contrast

On white

13.70
#4D154E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#4D154E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D154E
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D154E#FFFFFF#000000##FFFFFF
##4D154E1.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2950
Deuteranopia (green-blind)
#22304D
Tritanopia (blue-blind)
#4F1D2F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4d154e;
/* rgb */ color: rgb(77, 21, 78);
/* oklch */ color: oklch(31.3% 0.113 327.1);
Tailwind
colors: {
  custom: {
    50: '#815880',
    500: '#4d154e',
    950: '#000000',
  },
}
SCSS
$custom: #4d154e;
$custom-light: #815880;
$custom-dark: #000000;
JSON
{
  "hex": "#4d154e",
  "rgb": {
    "r": 77,
    "g": 21,
    "b": 78
  },
  "hsl": {
    "h": 298.947,
    "s": 57.576,
    "l": 19.412
  },
  "oklch": {
    "l": 0.31338,
    "c": 0.113,
    "h": 327.1
  },
  "luminance": 0.02664
}

Semantic roles & 50–950 ramp

primary
#4D154E
secondary
#3A8639
accent
#E1474A
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4D154E

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

Preview Lab → · Contrast checker → · Palette generator →

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