#4D145F#4D145F

#4D145F is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.4% C 0.131 H 316.6°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#4D145F
RGBrgb(77, 20, 95)
HSLhsl(286, 65%, 23%)
HSVhsv(286, 79%, 37%)
CMYKcmyk(18.9%, 78.9%, 0%, 62.7%)
CIE-LABlab(19.66, 38.24, -31.96)
CIE-LCHlch(19.66, 49.83, 320.11°)
OKLaboklab(32.43% 0.0952 -0.0899)
OKLCHoklch(32.43% 0.131 316.6)
XYZxyz(5.3760, 2.9045, 11.1017)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D145F #265F14
analogous
#28145F #4D145F #5F144B
triadic
#4D145F #5F4D14 #145F4D
tetradic
#4D145F #5F2814 #265F14 #144B5F
square
#4D145F #5F2814 #265F14 #144B5F
split-complementary
#4D145F #4B5F14 #145F28
monochromatic
#140519 #24092C #4D145F #761F92 #9F29C4

Accessibility & contrast

On white

13.28
#4D145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D145F
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D145F#FFFFFF#000000##FFFFFF
##4D145F1.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C61
Deuteranopia (green-blind)
#14315D
Tritanopia (blue-blind)
#4C2438
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #4d145f;
/* rgb */ color: rgb(77, 20, 95);
/* oklch */ color: oklch(32.4% 0.131 316.6);
Tailwind
colors: {
  custom: {
    50: '#82588d',
    500: '#4d145f',
    950: '#000000',
  },
}
SCSS
$custom: #4d145f;
$custom-light: #82588d;
$custom-dark: #000000;
JSON
{
  "hex": "#4d145f",
  "rgb": {
    "r": 77,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 285.6,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32434,
    "c": 0.13097,
    "h": 316.6
  },
  "luminance": 0.02904
}

Semantic roles & 50–950 ramp

primary
#4D145F
secondary
#4F9738
accent
#E84068
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4D145F

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

Preview Lab → · Contrast checker → · Palette generator →

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