#4D1E7D#4D1E7D

#4D1E7D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.151 H 301.7°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#4D1E7D
RGBrgb(77, 30, 125)
HSLhsl(270, 61%, 30%)
HSVhsv(270, 76%, 49%)
CMYKcmyk(38.4%, 76%, 0%, 51%)
CIE-LABlab(23.63, 41.00, -44.96)
CIE-LCHlch(23.63, 60.85, 312.36°)
OKLaboklab(36% 0.0792 -0.1282)
OKLCHoklch(36% 0.151 301.7)
XYZxyz(7.2256, 3.9870, 19.7869)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1E7D #4E7D1E
analogous
#1E1F7D #4D1E7D #7C1E7D
triadic
#4D1E7D #7D4D1E #1E7D4D
tetradic
#4D1E7D #7D1E1F #4E7D1E #1E7D7C
square
#4D1E7D #7D1E1F #4E7D1E #1E7D7C
split-complementary
#4D1E7D #7D7C1E #1F7D1E
monochromatic
#10061A #2F124C #4D1E7D #6B2AAE #8A43D2

Accessibility & contrast

On white

11.68
#4D1E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4D1E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1E7D
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1E7D#FFFFFF#000000##FFFFFF
##4D1E7D1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#43364C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d1e7d;
/* rgb */ color: rgb(77, 30, 125);
/* oklch */ color: oklch(36.0% 0.151 301.7);
Tailwind
colors: {
  custom: {
    50: '#845fa3',
    500: '#4d1e7d',
    950: '#000000',
  },
}
SCSS
$custom: #4d1e7d;
$custom-light: #845fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1e7d",
  "rgb": {
    "r": 77,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 269.684,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.35999,
    "c": 0.15069,
    "h": 301.7
  },
  "luminance": 0.03987
}

Semantic roles & 50–950 ramp

primary
#4D1E7D
secondary
#7CB046
accent
#E44395
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4D1E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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