#4D145B#4D145B

#4D145B is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.1% C 0.127 H 318.9°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#4D145B
RGBrgb(77, 20, 91)
HSLhsl(288, 64%, 22%)
HSVhsv(288, 78%, 36%)
CMYKcmyk(15.4%, 78%, 0%, 64.3%)
CIE-LABlab(19.37, 37.36, -29.77)
CIE-LCHlch(19.37, 47.77, 321.46°)
OKLaboklab(32.13% 0.0957 -0.0835)
OKLCHoklch(32.13% 0.127 318.9)
XYZxyz(5.1988, 2.8337, 10.1686)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D145B #225B14
analogous
#2A145B #4D145B #5B1446
triadic
#4D145B #5B4D14 #145B4D
tetradic
#4D145B #5B2A14 #225B14 #14465B
square
#4D145B #5B2A14 #225B14 #14465B
split-complementary
#4D145B #465B14 #145B2A
monochromatic
#150619 #230929 #4D145B #771F8D #A22ABF

Accessibility & contrast

On white

13.40
#4D145B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D145B
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D145B#FFFFFF#000000##FFFFFF
##4D145B1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d145b;
/* rgb */ color: rgb(77, 20, 91);
/* oklch */ color: oklch(32.1% 0.127 318.9);
Tailwind
colors: {
  custom: {
    50: '#82588a',
    500: '#4d145b',
    950: '#000000',
  },
}
SCSS
$custom: #4d145b;
$custom-light: #82588a;
$custom-dark: #000000;
JSON
{
  "hex": "#4d145b",
  "rgb": {
    "r": 77,
    "g": 20,
    "b": 91
  },
  "hsl": {
    "h": 288.169,
    "s": 63.964,
    "l": 21.765
  },
  "oklch": {
    "l": 0.32133,
    "c": 0.127,
    "h": 318.9
  },
  "luminance": 0.02833
}

Semantic roles & 50–950 ramp

primary
#4D145B
secondary
#4A9338
accent
#E74162
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4D145B

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

Preview Lab → · Contrast checker → · Palette generator →

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