#4D1D94#4D1D94

#4D1D94 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.177 H 294.6°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#4D1D94
RGBrgb(77, 29, 148)
HSLhsl(264, 67%, 35%)
HSVhsv(264, 80%, 58%)
CMYKcmyk(48%, 80.4%, 0%, 42%)
CIE-LABlab(25.55, 47.49, -56.20)
CIE-LCHlch(25.55, 73.58, 310.20°)
OKLaboklab(37.98% 0.0737 -0.1612)
OKLCHoklch(37.98% 0.177 294.6)
XYZxyz(8.8438, 4.5944, 28.4321)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1D94 #64941D
analogous
#1D2894 #4D1D94 #891D94
triadic
#4D1D94 #944D1D #1D944D
tetradic
#4D1D94 #941D28 #64941D #1D9489
square
#4D1D94 #941D28 #64941D #1D9489
split-complementary
#4D1D94 #94891D #28941D
monochromatic
#18092E #321361 #4D1D94 #6827C7 #884FDC

Accessibility & contrast

On white

10.94
#4D1D94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4D1D94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1D94
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1D94#FFFFFF#000000##FFFFFF
##4D1D941.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E97
Deuteranopia (green-blind)
#003B92
Tritanopia (blue-blind)
#383F59
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4d1d94;
/* rgb */ color: rgb(77, 29, 148);
/* oklch */ color: oklch(38.0% 0.177 294.6);
Tailwind
colors: {
  custom: {
    50: '#875fb4',
    500: '#4d1d94',
    950: '#000000',
  },
}
SCSS
$custom: #4d1d94;
$custom-light: #875fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1d94",
  "rgb": {
    "r": 77,
    "g": 29,
    "b": 148
  },
  "hsl": {
    "h": 264.202,
    "s": 67.232,
    "l": 34.706
  },
  "oklch": {
    "l": 0.37983,
    "c": 0.17727,
    "h": 294.6
  },
  "luminance": 0.04595
}

Semantic roles & 50–950 ramp

primary
#4D1D94
secondary
#91BF4E
accent
#EA3EA5
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4D1D94

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

Preview Lab → · Contrast checker → · Palette generator →

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