#4D1D88#4D1D88

#4D1D88 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.164 H 298.1°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#4D1D88
RGBrgb(77, 29, 136)
HSLhsl(267, 65%, 32%)
HSVhsv(267, 79%, 53%)
CMYKcmyk(43.4%, 78.7%, 0%, 46.7%)
CIE-LABlab(24.43, 44.33, -50.58)
CIE-LCHlch(24.43, 67.25, 311.23°)
OKLaboklab(36.86% 0.0773 -0.1447)
OKLCHoklch(36.86% 0.164 298.1)
XYZxyz(7.9427, 4.2340, 23.6865)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1D88 #58881D
analogous
#1D2388 #4D1D88 #831D88
triadic
#4D1D88 #884D1D #1D884D
tetradic
#4D1D88 #881D23 #58881D #1D8883
square
#4D1D88 #881D23 #58881D #1D8883
split-complementary
#4D1D88 #88831D #23881D
monochromatic
#140723 #301256 #4D1D88 #6A28BA #8848D8

Accessibility & contrast

On white

11.37
#4D1D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1D88
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1D88#FFFFFF#000000##FFFFFF
##4D1D881.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d1d88;
/* rgb */ color: rgb(77, 29, 136);
/* oklch */ color: oklch(36.9% 0.164 298.1);
Tailwind
colors: {
  custom: {
    50: '#855fac',
    500: '#4d1d88',
    950: '#000000',
  },
}
SCSS
$custom: #4d1d88;
$custom-light: #855fac;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1d88",
  "rgb": {
    "r": 77,
    "g": 29,
    "b": 136
  },
  "hsl": {
    "h": 266.916,
    "s": 64.848,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36862,
    "c": 0.16408,
    "h": 298.1
  },
  "luminance": 0.04234
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D1D88

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

Preview Lab → · Contrast checker → · Palette generator →

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