#4D1885#4D1885

#4D1885 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.166 H 299.8°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#4D1885
RGBrgb(77, 24, 133)
HSLhsl(269, 69%, 31%)
HSVhsv(269, 82%, 52%)
CMYKcmyk(42.1%, 82%, 0%, 47.8%)
CIE-LABlab(23.42, 45.68, -50.35)
CIE-LCHlch(23.42, 67.98, 312.22°)
OKLaboklab(36.07% 0.0824 -0.144)
OKLCHoklch(36.07% 0.166 299.8)
XYZxyz(7.6198, 3.9244, 22.5418)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1885 #508518
analogous
#181A85 #4D1885 #831885
triadic
#4D1885 #854D18 #18854D
tetradic
#4D1885 #85181A #508518 #188583
square
#4D1885 #85181A #508518 #188583
split-complementary
#4D1885 #858318 #1A8518
monochromatic
#11051D #2F0F51 #4D1885 #6B21B9 #893CDC

Accessibility & contrast

On white

11.76
#4D1885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1885
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1885#FFFFFF#000000##FFFFFF
##4D18851.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003888
Deuteranopia (green-blind)
#003783
Tritanopia (blue-blind)
#40364F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d1885;
/* rgb */ color: rgb(77, 24, 133);
/* oklch */ color: oklch(36.1% 0.166 299.8);
Tailwind
colors: {
  custom: {
    50: '#855ca9',
    500: '#4d1885',
    950: '#000000',
  },
}
SCSS
$custom: #4d1885;
$custom-light: #855ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1885",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 133
  },
  "hsl": {
    "h": 269.174,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36073,
    "c": 0.16592,
    "h": 299.8
  },
  "luminance": 0.03925
}

Semantic roles & 50–950 ramp

primary
#4D1885
secondary
#7EB940
accent
#EC3C96
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4D1885

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

Preview Lab → · Contrast checker → · Palette generator →

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