#4D1D76#4D1D76

#4D1D76 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.144 H 304.5°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#4D1D76
RGBrgb(77, 29, 118)
HSLhsl(272, 61%, 29%)
HSVhsv(272, 75%, 46%)
CMYKcmyk(34.7%, 75.4%, 0%, 53.7%)
CIE-LABlab(22.88, 39.68, -41.72)
CIE-LCHlch(22.88, 57.58, 313.56°)
OKLaboklab(35.29% 0.0817 -0.1187)
OKLCHoklch(35.29% 0.144 304.5)
XYZxyz(6.7692, 3.7645, 17.5060)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1D76 #46761D
analogous
#211D76 #4D1D76 #761D73
triadic
#4D1D76 #764D1D #1D764D
tetradic
#4D1D76 #76211D #46761D #1D7376
square
#4D1D76 #76211D #46761D #1D7376
split-complementary
#4D1D76 #73761D #1D7621
monochromatic
#100619 #2D1145 #4D1D76 #6D29A7 #8C3ED0

Accessibility & contrast

On white

11.98
#4D1D76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4D1D76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1D76
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1D76#FFFFFF#000000##FFFFFF
##4D1D761.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003579
Deuteranopia (green-blind)
#003774
Tritanopia (blue-blind)
#453247
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4d1d76;
/* rgb */ color: rgb(77, 29, 118);
/* oklch */ color: oklch(35.3% 0.144 304.5);
Tailwind
colors: {
  custom: {
    50: '#835e9e',
    500: '#4d1d76',
    950: '#000000',
  },
}
SCSS
$custom: #4d1d76;
$custom-light: #835e9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1d76",
  "rgb": {
    "r": 77,
    "g": 29,
    "b": 118
  },
  "hsl": {
    "h": 272.36,
    "s": 60.544,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35286,
    "c": 0.14408,
    "h": 304.5
  },
  "luminance": 0.03765
}

Semantic roles & 50–950 ramp

primary
#4D1D76
secondary
#73AA45
accent
#E4448E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #4D1D76

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

Preview Lab → · Contrast checker → · Palette generator →

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