#4D145D#4D145D

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

Color values

HEX#4D145D
RGBrgb(77, 20, 93)
HSLhsl(287, 65%, 22%)
HSVhsv(287, 78%, 36%)
CMYKcmyk(17.2%, 78.5%, 0%, 63.5%)
CIE-LABlab(19.51, 37.80, -30.87)
CIE-LCHlch(19.51, 48.80, 320.76°)
OKLaboklab(32.28% 0.0954 -0.0867)
OKLCHoklch(32.28% 0.129 317.7)
XYZxyz(5.2862, 2.8686, 10.6291)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D145D #245D14
analogous
#28145D #4D145D #5D1449
triadic
#4D145D #5D4D14 #145D4D
tetradic
#4D145D #5D2814 #245D14 #14495D
square
#4D145D #5D2814 #245D14 #14495D
split-complementary
#4D145D #495D14 #145D28
monochromatic
#150519 #23092B #4D145D #771F8F #A02AC2

Accessibility & contrast

On white

13.35
#4D145D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D145D
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D145D#FFFFFF#000000##FFFFFF
##4D145D1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5F
Deuteranopia (green-blind)
#17315B
Tritanopia (blue-blind)
#4C2337
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4d145d;
/* rgb */ color: rgb(77, 20, 93);
/* oklch */ color: oklch(32.3% 0.129 317.7);
Tailwind
colors: {
  custom: {
    50: '#82588b',
    500: '#4d145d',
    950: '#000000',
  },
}
SCSS
$custom: #4d145d;
$custom-light: #82588b;
$custom-dark: #000000;
JSON
{
  "hex": "#4d145d",
  "rgb": {
    "r": 77,
    "g": 20,
    "b": 93
  },
  "hsl": {
    "h": 286.849,
    "s": 64.602,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32282,
    "c": 0.12897,
    "h": 317.7
  },
  "luminance": 0.02868
}

Semantic roles & 50–950 ramp

primary
#4D145D
secondary
#4C9538
accent
#E84065
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4D145D

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

Preview Lab → · Contrast checker → · Palette generator →

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