#4D1788#4D1788

#4D1788 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.170 H 298.9°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#4D1788
RGBrgb(77, 23, 136)
HSLhsl(269, 71%, 31%)
HSVhsv(269, 83%, 53%)
CMYKcmyk(43.4%, 83.1%, 0%, 46.7%)
CIE-LABlab(23.57, 46.83, -51.99)
CIE-LCHlch(23.57, 69.98, 312.01°)
OKLaboklab(36.26% 0.0822 -0.1488)
OKLCHoklch(36.26% 0.17 298.9)
XYZxyz(7.8098, 3.9680, 23.6422)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1788 #528817
analogous
#171988 #4D1788 #851788
triadic
#4D1788 #884D17 #17884D
tetradic
#4D1788 #881719 #528817 #178885
square
#4D1788 #881719 #528817 #178885
split-complementary
#4D1788 #888517 #198817
monochromatic
#12051F #2F0E54 #4D1788 #6B20BC #893BDE

Accessibility & contrast

On white

11.71
#4D1788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4D1788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1788
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1788#FFFFFF#000000##FFFFFF
##4D17881.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#003786
Tritanopia (blue-blind)
#3E3750
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d1788;
/* rgb */ color: rgb(77, 23, 136);
/* oklch */ color: oklch(36.3% 0.170 298.9);
Tailwind
colors: {
  custom: {
    50: '#855cac',
    500: '#4d1788',
    950: '#000000',
  },
}
SCSS
$custom: #4d1788;
$custom-light: #855cac;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1788",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 268.673,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3626,
    "c": 0.17001,
    "h": 298.9
  },
  "luminance": 0.03968
}

Semantic roles & 50–950 ramp

primary
#4D1788
secondary
#80BC3F
accent
#EE3A98
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4D1788

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

Preview Lab → · Contrast checker → · Palette generator →

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