#4D1989#4D1989

#4D1989 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.169 H 298.3°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#4D1989
RGBrgb(77, 25, 137)
HSLhsl(268, 69%, 32%)
HSVhsv(268, 82%, 54%)
CMYKcmyk(43.8%, 81.8%, 0%, 46.3%)
CIE-LABlab(23.93, 46.29, -52.02)
CIE-LCHlch(23.93, 69.64, 311.67°)
OKLaboklab(36.54% 0.0803 -0.1489)
OKLCHoklch(36.54% 0.169 298.3)
XYZxyz(7.9224, 4.0791, 24.0320)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1989 #558919
analogous
#191D89 #4D1989 #851989
triadic
#4D1989 #894D19 #19894D
tetradic
#4D1989 #89191D #558919 #198985
square
#4D1989 #89191D #558919 #198985
split-complementary
#4D1989 #898519 #1D8919
monochromatic
#130621 #301055 #4D1989 #6A22BD #8940DC

Accessibility & contrast

On white

11.57
#4D1989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4D1989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1989
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1989#FFFFFF#000000##FFFFFF
##4D19891.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398C
Deuteranopia (green-blind)
#003887
Tritanopia (blue-blind)
#3E3851
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4d1989;
/* rgb */ color: rgb(77, 25, 137);
/* oklch */ color: oklch(36.5% 0.169 298.3);
Tailwind
colors: {
  custom: {
    50: '#855dac',
    500: '#4d1989',
    950: '#000000',
  },
}
SCSS
$custom: #4d1989;
$custom-light: #855dac;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1989",
  "rgb": {
    "r": 77,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 267.857,
    "s": 69.136,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36542,
    "c": 0.1692,
    "h": 298.3
  },
  "luminance": 0.04079
}

Semantic roles & 50–950 ramp

primary
#4D1989
secondary
#83BC41
accent
#EC3C9A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4D1989

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

Preview Lab → · Contrast checker → · Palette generator →

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