#4D1C8C#4D1C8C

#4D1C8C is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.170 H 297.0°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#4D1C8C
RGBrgb(77, 28, 140)
HSLhsl(266, 67%, 33%)
HSVhsv(266, 80%, 55%)
CMYKcmyk(45%, 80%, 0%, 45.1%)
CIE-LABlab(24.64, 45.82, -52.72)
CIE-LCHlch(24.64, 69.85, 310.99°)
OKLaboklab(37.13% 0.077 -0.151)
OKLCHoklch(37.13% 0.17 297)
XYZxyz(8.2082, 4.3016, 25.2037)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1C8C #5B8C1C
analogous
#1C238C #4D1C8C #851C8C
triadic
#4D1C8C #8C4D1C #1C8C4D
tetradic
#4D1C8C #8C1C23 #5B8C1C #1C8C85
square
#4D1C8C #8C1C23 #5B8C1C #1C8C85
split-complementary
#4D1C8C #8C851C #238C1C
monochromatic
#150826 #311259 #4D1C8C #6926BF #8848DA

Accessibility & contrast

On white

11.29
#4D1C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4D1C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1C8C
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1C8C#FFFFFF#000000##FFFFFF
##4D1C8C1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00398A
Tritanopia (blue-blind)
#3C3B54
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d1c8c;
/* rgb */ color: rgb(77, 28, 140);
/* oklch */ color: oklch(37.1% 0.170 297.0);
Tailwind
colors: {
  custom: {
    50: '#865faf',
    500: '#4d1c8c',
    950: '#000000',
  },
}
SCSS
$custom: #4d1c8c;
$custom-light: #865faf;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1c8c",
  "rgb": {
    "r": 77,
    "g": 28,
    "b": 140
  },
  "hsl": {
    "h": 266.25,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37125,
    "c": 0.1695,
    "h": 297
  },
  "luminance": 0.04302
}

Semantic roles & 50–950 ramp

primary
#4D1C8C
secondary
#89BC48
accent
#EA3E9F
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D1C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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