#4D1C8E#4D1C8E

#4D1C8E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.172 H 296.4°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#4D1C8E
RGBrgb(77, 28, 142)
HSLhsl(266, 67%, 33%)
HSVhsv(266, 80%, 56%)
CMYKcmyk(45.8%, 80.3%, 0%, 44.3%)
CIE-LABlab(24.83, 46.34, -53.66)
CIE-LCHlch(24.83, 70.90, 310.81°)
OKLaboklab(37.31% 0.0764 -0.1538)
OKLCHoklch(37.31% 0.172 296.4)
XYZxyz(8.3570, 4.3611, 25.9874)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1C8E #5D8E1C
analogous
#1C248E #4D1C8E #861C8E
triadic
#4D1C8E #8E4D1C #1C8E4D
tetradic
#4D1C8E #8E1C24 #5D8E1C #1C8E86
square
#4D1C8E #8E1C24 #5D8E1C #1C8E86
split-complementary
#4D1C8E #8E861C #248E1C
monochromatic
#160828 #31125B #4D1C8E #6926C1 #8849DB

Accessibility & contrast

On white

11.22
#4D1C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4D1C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1C8E
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1C8E#FFFFFF#000000##FFFFFF
##4D1C8E1.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#3B3C55
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4d1c8e;
/* rgb */ color: rgb(77, 28, 142);
/* oklch */ color: oklch(37.3% 0.172 296.4);
Tailwind
colors: {
  custom: {
    50: '#865fb0',
    500: '#4d1c8e',
    950: '#000000',
  },
}
SCSS
$custom: #4d1c8e;
$custom-light: #865fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1c8e",
  "rgb": {
    "r": 77,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 265.789,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37312,
    "c": 0.17168,
    "h": 296.4
  },
  "luminance": 0.04361
}

Semantic roles & 50–950 ramp

primary
#4D1C8E
secondary
#8BBD49
accent
#EA3EA0
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4D1C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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