#4D1E9D#4D1E9D

#4D1E9D is a dark, vivid violet. Relative luminance 0.049; OKLCH L 39.0% C 0.186 H 292.1°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#4D1E9D
RGBrgb(77, 30, 157)
HSLhsl(262, 68%, 37%)
HSVhsv(262, 81%, 62%)
CMYKcmyk(51%, 80.9%, 0%, 38.4%)
CIE-LABlab(26.56, 49.46, -60.05)
CIE-LCHlch(26.56, 77.80, 309.47°)
OKLaboklab(38.95% 0.07 -0.1725)
OKLCHoklch(38.95% 0.186 292.1)
XYZxyz(9.6089, 4.9403, 32.3390)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1E9D #6E9D1E
analogous
#1E2F9D #4D1E9D #8D1E9D
triadic
#4D1E9D #9D4D1E #1E9D4D
tetradic
#4D1E9D #9D1E2F #6E9D1E #1E9D8D
square
#4D1E9D #9D1E2F #6E9D1E #1E9D8D
split-complementary
#4D1E9D #9D8D1E #2F9D1E
monochromatic
#1B0A36 #34146A #4D1E9D #6628D0 #8957DF

Accessibility & contrast

On white

10.56
#4D1E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#4D1E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1E9D
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1E9D#FFFFFF#000000##FFFFFF
##4D1E9D1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A0
Deuteranopia (green-blind)
#003C9B
Tritanopia (blue-blind)
#32435E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4d1e9d;
/* rgb */ color: rgb(77, 30, 157);
/* oklch */ color: oklch(39.0% 0.186 292.1);
Tailwind
colors: {
  custom: {
    50: '#8861bb',
    500: '#4d1e9d',
    950: '#000000',
  },
}
SCSS
$custom: #4d1e9d;
$custom-light: #8861bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1e9d",
  "rgb": {
    "r": 77,
    "g": 30,
    "b": 157
  },
  "hsl": {
    "h": 262.205,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.38954,
    "c": 0.18618,
    "h": 292.1
  },
  "luminance": 0.04941
}

Semantic roles & 50–950 ramp

primary
#4D1E9D
secondary
#9AC254
accent
#EB3DAA
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #4D1E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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