#4D145C#4D145C

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

Color values

HEX#4D145C
RGBrgb(77, 20, 92)
HSLhsl(288, 64%, 22%)
HSVhsv(288, 78%, 36%)
CMYKcmyk(16.3%, 78.3%, 0%, 63.9%)
CIE-LABlab(19.44, 37.58, -30.32)
CIE-LCHlch(19.44, 48.28, 321.11°)
OKLaboklab(32.21% 0.0956 -0.0851)
OKLCHoklch(32.21% 0.128 318.3)
XYZxyz(5.2422, 2.8510, 10.3973)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D145C #235C14
analogous
#29145C #4D145C #5C1447
triadic
#4D145C #5C4D14 #145C4D
tetradic
#4D145C #5C2914 #235C14 #14475C
square
#4D145C #5C2914 #235C14 #14475C
split-complementary
#4D145C #475C14 #145C29
monochromatic
#150519 #23092A #4D145C #771F8E #A12AC1

Accessibility & contrast

On white

13.37
#4D145C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D145C
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D145C#FFFFFF#000000##FFFFFF
##4D145C1.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d145c;
/* rgb */ color: rgb(77, 20, 92);
/* oklch */ color: oklch(32.2% 0.128 318.3);
Tailwind
colors: {
  custom: {
    50: '#82588b',
    500: '#4d145c',
    950: '#000000',
  },
}
SCSS
$custom: #4d145c;
$custom-light: #82588b;
$custom-dark: #000000;
JSON
{
  "hex": "#4d145c",
  "rgb": {
    "r": 77,
    "g": 20,
    "b": 92
  },
  "hsl": {
    "h": 287.5,
    "s": 64.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.32207,
    "c": 0.12798,
    "h": 318.3
  },
  "luminance": 0.02851
}

Semantic roles & 50–950 ramp

primary
#4D145C
secondary
#4B9438
accent
#E74163
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4D145C

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

Preview Lab → · Contrast checker → · Palette generator →

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