#4D1D89#4D1D89

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

Color values

HEX#4D1D89
RGBrgb(77, 29, 137)
HSLhsl(267, 65%, 33%)
HSVhsv(267, 79%, 54%)
CMYKcmyk(43.8%, 78.8%, 0%, 46.3%)
CIE-LABlab(24.52, 44.59, -51.05)
CIE-LCHlch(24.52, 67.79, 311.13°)
OKLaboklab(36.95% 0.077 -0.1461)
OKLCHoklch(36.95% 0.165 297.8)
XYZxyz(8.0141, 4.2625, 24.0626)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1D89 #59891D
analogous
#1D2389 #4D1D89 #831D89
triadic
#4D1D89 #894D1D #1D894D
tetradic
#4D1D89 #891D23 #59891D #1D8983
square
#4D1D89 #891D23 #59891D #1D8983
split-complementary
#4D1D89 #89831D #23891D
monochromatic
#140824 #311256 #4D1D89 #6928BC #8848D8

Accessibility & contrast

On white

11.34
#4D1D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4D1D89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1D89
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1D89#FFFFFF#000000##FFFFFF
##4D1D891.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8C
Deuteranopia (green-blind)
#003987
Tritanopia (blue-blind)
#3E3A52
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4d1d89;
/* rgb */ color: rgb(77, 29, 137);
/* oklch */ color: oklch(37.0% 0.165 297.8);
Tailwind
colors: {
  custom: {
    50: '#855fac',
    500: '#4d1d89',
    950: '#000000',
  },
}
SCSS
$custom: #4d1d89;
$custom-light: #855fac;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1d89",
  "rgb": {
    "r": 77,
    "g": 29,
    "b": 137
  },
  "hsl": {
    "h": 266.667,
    "s": 65.06,
    "l": 32.549
  },
  "oklch": {
    "l": 0.36954,
    "c": 0.16518,
    "h": 297.8
  },
  "luminance": 0.04263
}

Semantic roles & 50–950 ramp

primary
#4D1D89
secondary
#87BA47
accent
#E8409D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D1D89

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

Preview Lab → · Contrast checker → · Palette generator →

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