#4D1E89#4D1E89

#4D1E89 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.164 H 297.6°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#4D1E89
RGBrgb(77, 30, 137)
HSLhsl(266, 64%, 33%)
HSVhsv(266, 78%, 54%)
CMYKcmyk(43.8%, 78.1%, 0%, 46.3%)
CIE-LABlab(24.68, 44.14, -50.80)
CIE-LCHlch(24.68, 67.30, 310.99°)
OKLaboklab(37.06% 0.0762 -0.1454)
OKLCHoklch(37.06% 0.164 297.6)
XYZxyz(8.0390, 4.3123, 24.0709)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1E89 #5A891E
analogous
#1E2589 #4D1E89 #821E89
triadic
#4D1E89 #894D1E #1E894D
tetradic
#4D1E89 #891E25 #5A891E #1E8982
square
#4D1E89 #891E25 #5A891E #1E8982
split-complementary
#4D1E89 #89821E #25891E
monochromatic
#150825 #311357 #4D1E89 #6929BB #884AD7

Accessibility & contrast

On white

11.28
#4D1E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4D1E89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1E89
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1E89#FFFFFF#000000##FFFFFF
##4D1E891.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8C
Deuteranopia (green-blind)
#003987
Tritanopia (blue-blind)
#3E3B52
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4d1e89;
/* rgb */ color: rgb(77, 30, 137);
/* oklch */ color: oklch(37.1% 0.164 297.6);
Tailwind
colors: {
  custom: {
    50: '#855fac',
    500: '#4d1e89',
    950: '#000000',
  },
}
SCSS
$custom: #4d1e89;
$custom-light: #855fac;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1e89",
  "rgb": {
    "r": 77,
    "g": 30,
    "b": 137
  },
  "hsl": {
    "h": 266.355,
    "s": 64.072,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37064,
    "c": 0.16411,
    "h": 297.6
  },
  "luminance": 0.04312
}

Semantic roles & 50–950 ramp

primary
#4D1E89
secondary
#88BA49
accent
#E7419E
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D1E89

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

Preview Lab → · Contrast checker → · Palette generator →

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