#4D1E8B#4D1E8B

#4D1E8B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.166 H 297.0°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#4D1E8B
RGBrgb(77, 30, 139)
HSLhsl(266, 64%, 33%)
HSVhsv(266, 78%, 55%)
CMYKcmyk(44.6%, 78.4%, 0%, 45.5%)
CIE-LABlab(24.86, 44.67, -51.75)
CIE-LCHlch(24.86, 68.36, 310.80°)
OKLaboklab(37.25% 0.0756 -0.1482)
OKLCHoklch(37.25% 0.166 297)
XYZxyz(8.1838, 4.3702, 24.8335)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1E8B #5C8B1E
analogous
#1E258B #4D1E8B #831E8B
triadic
#4D1E8B #8B4D1E #1E8B4D
tetradic
#4D1E8B #8B1E25 #5C8B1E #1E8B83
square
#4D1E8B #8B1E25 #5C8B1E #1E8B83
split-complementary
#4D1E8B #8B831E #258B1E
monochromatic
#150826 #311359 #4D1E8B #6929BD #884BD8

Accessibility & contrast

On white

11.21
#4D1E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4D1E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1E8B
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1E8B#FFFFFF#000000##FFFFFF
##4D1E8B1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003A89
Tritanopia (blue-blind)
#3D3B54
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4d1e8b;
/* rgb */ color: rgb(77, 30, 139);
/* oklch */ color: oklch(37.2% 0.166 297.0);
Tailwind
colors: {
  custom: {
    50: '#855fae',
    500: '#4d1e8b',
    950: '#000000',
  },
}
SCSS
$custom: #4d1e8b;
$custom-light: #855fae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1e8b",
  "rgb": {
    "r": 77,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 265.872,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37247,
    "c": 0.16634,
    "h": 297
  },
  "luminance": 0.0437
}

Semantic roles & 50–950 ramp

primary
#4D1E8B
secondary
#8ABB4A
accent
#E7409F
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D1E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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