#4D1E8A#4D1E8A

#4D1E8A is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.165 H 297.3°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#4D1E8A
RGBrgb(77, 30, 138)
HSLhsl(266, 64%, 33%)
HSVhsv(266, 78%, 54%)
CMYKcmyk(44.2%, 78.3%, 0%, 45.9%)
CIE-LABlab(24.77, 44.41, -51.27)
CIE-LCHlch(24.77, 67.83, 310.89°)
OKLaboklab(37.16% 0.0759 -0.1468)
OKLCHoklch(37.16% 0.165 297.3)
XYZxyz(8.1111, 4.3411, 24.4504)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1E8A #5B8A1E
analogous
#1E258A #4D1E8A #831E8A
triadic
#4D1E8A #8A4D1E #1E8A4D
tetradic
#4D1E8A #8A1E25 #5B8A1E #1E8A83
square
#4D1E8A #8A1E25 #5B8A1E #1E8A83
split-complementary
#4D1E8A #8A831E #258A1E
monochromatic
#150825 #311358 #4D1E8A #6929BC #884BD8

Accessibility & contrast

On white

11.24
#4D1E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1E8A
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1E8A#FFFFFF#000000##FFFFFF
##4D1E8A1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003988
Tritanopia (blue-blind)
#3D3B53
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4d1e8a;
/* rgb */ color: rgb(77, 30, 138);
/* oklch */ color: oklch(37.2% 0.165 297.3);
Tailwind
colors: {
  custom: {
    50: '#855fad',
    500: '#4d1e8a',
    950: '#000000',
  },
}
SCSS
$custom: #4d1e8a;
$custom-light: #855fad;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1e8a",
  "rgb": {
    "r": 77,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 266.111,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37155,
    "c": 0.16522,
    "h": 297.3
  },
  "luminance": 0.04341
}

Semantic roles & 50–950 ramp

primary
#4D1E8A
secondary
#89BA4A
accent
#E7419F
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D1E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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