#4D108D#4D108D

#4D108D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.2% C 0.181 H 298.0°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#4D108D
RGBrgb(77, 16, 141)
HSLhsl(269, 80%, 31%)
HSVhsv(269, 89%, 55%)
CMYKcmyk(45.4%, 88.7%, 0%, 44.7%)
CIE-LABlab(23.24, 50.46, -55.65)
CIE-LCHlch(23.24, 75.12, 312.20°)
OKLaboklab(36.19% 0.0849 -0.1595)
OKLCHoklch(36.19% 0.181 298)
XYZxyz(8.0523, 3.8713, 25.5171)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D108D #508D10
analogous
#10118D #4D108D #8B108D
triadic
#4D108D #8D4D10 #108D4D
tetradic
#4D108D #8D1011 #508D10 #108D8B
square
#4D108D #8D1011 #508D10 #108D8B
split-complementary
#4D108D #8D8B10 #118D10
monochromatic
#11041F #2F0A56 #4D108D #6B16C4 #8930E7

Accessibility & contrast

On white

11.84
#4D108D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4D108D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D108D
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D108D#FFFFFF#000000##FFFFFF
##4D108D1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#3C3752
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4d108d;
/* rgb */ color: rgb(77, 16, 141);
/* oklch */ color: oklch(36.2% 0.181 298.0);
Tailwind
colors: {
  custom: {
    50: '#865aaf',
    500: '#4d108d',
    950: '#000000',
  },
}
SCSS
$custom: #4d108d;
$custom-light: #865aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#4d108d",
  "rgb": {
    "r": 77,
    "g": 16,
    "b": 141
  },
  "hsl": {
    "h": 269.28,
    "s": 79.618,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36185,
    "c": 0.18065,
    "h": 298
  },
  "luminance": 0.03871
}

Semantic roles & 50–950 ramp

primary
#4D108D
secondary
#7EC237
accent
#F63296
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4D108D

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

Preview Lab → · Contrast checker → · Palette generator →

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