#4D1E8D#4D1E8D

#4D1E8D is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.169 H 296.4°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#4D1E8D
RGBrgb(77, 30, 141)
HSLhsl(265, 65%, 34%)
HSVhsv(265, 79%, 55%)
CMYKcmyk(45.4%, 78.7%, 0%, 44.7%)
CIE-LABlab(25.04, 45.20, -52.69)
CIE-LCHlch(25.04, 69.42, 310.62°)
OKLaboklab(37.43% 0.075 -0.1509)
OKLCHoklch(37.43% 0.169 296.4)
XYZxyz(8.3313, 4.4292, 25.6101)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1E8D #5E8D1E
analogous
#1E278D #4D1E8D #841E8D
triadic
#4D1E8D #8D4D1E #1E8D4D
tetradic
#4D1E8D #8D1E27 #5E8D1E #1E8D84
square
#4D1E8D #8D1E27 #5E8D1E #1E8D84
split-complementary
#4D1E8D #8D841E #278D1E
monochromatic
#160928 #31135B #4D1E8D #6929BF #884CD9

Accessibility & contrast

On white

11.14
#4D1E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1E8D
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1E8D#FFFFFF#000000##FFFFFF
##4D1E8D1.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#3C3C55
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4d1e8d;
/* rgb */ color: rgb(77, 30, 141);
/* oklch */ color: oklch(37.4% 0.169 296.4);
Tailwind
colors: {
  custom: {
    50: '#8660af',
    500: '#4d1e8d',
    950: '#000000',
  },
}
SCSS
$custom: #4d1e8d;
$custom-light: #8660af;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1e8d",
  "rgb": {
    "r": 77,
    "g": 30,
    "b": 141
  },
  "hsl": {
    "h": 265.405,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37431,
    "c": 0.16856,
    "h": 296.4
  },
  "luminance": 0.04429
}

Semantic roles & 50–950 ramp

primary
#4D1E8D
secondary
#8CBC4B
accent
#E840A1
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D1E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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