#4D145E#4D145E

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

Color values

HEX#4D145E
RGBrgb(77, 20, 94)
HSLhsl(286, 65%, 22%)
HSVhsv(286, 79%, 37%)
CMYKcmyk(18.1%, 78.7%, 0%, 63.1%)
CIE-LABlab(19.58, 38.01, -31.41)
CIE-LCHlch(19.58, 49.31, 320.43°)
OKLaboklab(32.36% 0.0953 -0.0883)
OKLCHoklch(32.36% 0.13 317.2)
XYZxyz(5.3308, 2.8865, 10.8638)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D145E #255E14
analogous
#28145E #4D145E #5E144A
triadic
#4D145E #5E4D14 #145E4D
tetradic
#4D145E #5E2814 #255E14 #144A5E
square
#4D145E #5E2814 #255E14 #144A5E
split-complementary
#4D145E #4A5E14 #145E28
monochromatic
#150519 #24092C #4D145E #761F90 #A029C3

Accessibility & contrast

On white

13.31
#4D145E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D145E
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D145E#FFFFFF#000000##FFFFFF
##4D145E1.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C60
Deuteranopia (green-blind)
#16315C
Tritanopia (blue-blind)
#4C2338
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4d145e;
/* rgb */ color: rgb(77, 20, 94);
/* oklch */ color: oklch(32.4% 0.130 317.2);
Tailwind
colors: {
  custom: {
    50: '#82588c',
    500: '#4d145e',
    950: '#000000',
  },
}
SCSS
$custom: #4d145e;
$custom-light: #82588c;
$custom-dark: #000000;
JSON
{
  "hex": "#4d145e",
  "rgb": {
    "r": 77,
    "g": 20,
    "b": 94
  },
  "hsl": {
    "h": 286.216,
    "s": 64.912,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32358,
    "c": 0.12997,
    "h": 317.2
  },
  "luminance": 0.02886
}

Semantic roles & 50–950 ramp

primary
#4D145E
secondary
#4E9638
accent
#E84067
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4D145E

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

Preview Lab → · Contrast checker → · Palette generator →

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