#4D104E#4D104E

#4D104E is a dark, moderate purple. Relative luminance 0.025; OKLCH L 30.8% C 0.120 H 327.3°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#4D104E
RGBrgb(77, 16, 78)
HSLhsl(299, 66%, 18%)
HSVhsv(299, 79%, 31%)
CMYKcmyk(1.3%, 79.5%, 0%, 69.4%)
CIE-LABlab(17.91, 36.31, -23.31)
CIE-LCHlch(17.91, 43.15, 327.30°)
OKLaboklab(30.81% 0.1008 -0.0647)
OKLCHoklch(30.81% 0.12 327.3)
XYZxyz(4.6209, 2.4987, 7.4452)
Luminance0.0250 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D104E #114E10
analogous
#2E104E #4D104E #4E1030
triadic
#4D104E #4E4D10 #104E4D
tetradic
#4D104E #4E2E10 #114E10 #10304E
square
#4D104E #4E2E10 #114E10 #10304E
split-complementary
#4D104E #304E10 #104E2E
monochromatic
#190519 #1B061B #4D104E #7F1A81 #B125B4

Accessibility & contrast

On white

14.00
#4D104E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#4D104E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D104E
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D104E#FFFFFF#000000##FFFFFF
##4D104E1.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042750
Deuteranopia (green-blind)
#202F4C
Tritanopia (blue-blind)
#4F1A2E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4d104e;
/* rgb */ color: rgb(77, 16, 78);
/* oklch */ color: oklch(30.8% 0.120 327.3);
Tailwind
colors: {
  custom: {
    50: '#815680',
    500: '#4d104e',
    950: '#000000',
  },
}
SCSS
$custom: #4d104e;
$custom-light: #815680;
$custom-dark: #000000;
JSON
{
  "hex": "#4d104e",
  "rgb": {
    "r": 77,
    "g": 16,
    "b": 78
  },
  "hsl": {
    "h": 299.032,
    "s": 65.957,
    "l": 18.431
  },
  "oklch": {
    "l": 0.30811,
    "c": 0.11972,
    "h": 327.3
  },
  "luminance": 0.02498
}

Semantic roles & 50–950 ramp

primary
#4D104E
secondary
#338832
accent
#E93F42
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #4D104E

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

Preview Lab → · Contrast checker → · Palette generator →

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