#4D1C8F#4D1C8F

#4D1C8F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.173 H 296.1°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#4D1C8F
RGBrgb(77, 28, 143)
HSLhsl(266, 67%, 34%)
HSVhsv(266, 80%, 56%)
CMYKcmyk(46.2%, 80.4%, 0%, 43.9%)
CIE-LABlab(24.93, 46.60, -54.13)
CIE-LCHlch(24.93, 71.42, 310.73°)
OKLaboklab(37.41% 0.0761 -0.1551)
OKLCHoklch(37.41% 0.173 296.1)
XYZxyz(8.4324, 4.3913, 26.3846)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1C8F #5E8F1C
analogous
#1C258F #4D1C8F #861C8F
triadic
#4D1C8F #8F4D1C #1C8F4D
tetradic
#4D1C8F #8F1C25 #5E8F1C #1C8F86
square
#4D1C8F #8F1C25 #5E8F1C #1C8F86
split-complementary
#4D1C8F #8F861C #258F1C
monochromatic
#160829 #31125C #4D1C8F #6926C2 #884ADC

Accessibility & contrast

On white

11.18
#4D1C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4D1C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1C8F
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1C8F#FFFFFF#000000##FFFFFF
##4D1C8F1.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#3B3C55
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4d1c8f;
/* rgb */ color: rgb(77, 28, 143);
/* oklch */ color: oklch(37.4% 0.173 296.1);
Tailwind
colors: {
  custom: {
    50: '#865fb1',
    500: '#4d1c8f',
    950: '#000000',
  },
}
SCSS
$custom: #4d1c8f;
$custom-light: #865fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1c8f",
  "rgb": {
    "r": 77,
    "g": 28,
    "b": 143
  },
  "hsl": {
    "h": 265.565,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37406,
    "c": 0.17277,
    "h": 296.1
  },
  "luminance": 0.04391
}

Semantic roles & 50–950 ramp

primary
#4D1C8F
secondary
#8CBE49
accent
#EA3EA1
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4D1C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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