#4D1D8F#4D1D8F

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

Color values

HEX#4D1D8F
RGBrgb(77, 29, 143)
HSLhsl(265, 66%, 34%)
HSVhsv(265, 80%, 56%)
CMYKcmyk(46.2%, 79.7%, 0%, 43.9%)
CIE-LABlab(25.07, 46.17, -53.88)
CIE-LCHlch(25.07, 70.96, 310.59°)
OKLaboklab(37.51% 0.0753 -0.1544)
OKLCHoklch(37.51% 0.172 296)
XYZxyz(8.4565, 4.4395, 26.3926)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1D8F #5F8F1D
analogous
#1D268F #4D1D8F #861D8F
triadic
#4D1D8F #8F4D1D #1D8F4D
tetradic
#4D1D8F #8F1D26 #5F8F1D #1D8F86
square
#4D1D8F #8F1D26 #5F8F1D #1D8F86
split-complementary
#4D1D8F #8F861D #268F1D
monochromatic
#160829 #32135C #4D1D8F #6827C2 #884CDB

Accessibility & contrast

On white

11.12
#4D1D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4D1D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1D8F
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1D8F#FFFFFF#000000##FFFFFF
##4D1D8F1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d1d8f;
/* rgb */ color: rgb(77, 29, 143);
/* oklch */ color: oklch(37.5% 0.172 296.0);
Tailwind
colors: {
  custom: {
    50: '#865fb1',
    500: '#4d1d8f',
    950: '#000000',
  },
}
SCSS
$custom: #4d1d8f;
$custom-light: #865fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1d8f",
  "rgb": {
    "r": 77,
    "g": 29,
    "b": 143
  },
  "hsl": {
    "h": 265.263,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3751,
    "c": 0.17178,
    "h": 296
  },
  "luminance": 0.0444
}

Semantic roles & 50–950 ramp

primary
#4D1D8F
secondary
#8DBD4B
accent
#E93FA1
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4D1D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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