#4D1886#4D1886

#4D1886 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.167 H 299.4°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#4D1886
RGBrgb(77, 24, 134)
HSLhsl(269, 70%, 31%)
HSVhsv(269, 82%, 53%)
CMYKcmyk(42.5%, 82.1%, 0%, 47.5%)
CIE-LABlab(23.51, 45.93, -50.83)
CIE-LCHlch(23.51, 68.51, 312.11°)
OKLaboklab(36.17% 0.0821 -0.1454)
OKLCHoklch(36.17% 0.167 299.4)
XYZxyz(7.6892, 3.9522, 22.9074)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1886 #518618
analogous
#181A86 #4D1886 #841886
triadic
#4D1886 #864D18 #18864D
tetradic
#4D1886 #86181A #518618 #188684
square
#4D1886 #86181A #518618 #188684
split-complementary
#4D1886 #868418 #1A8618
monochromatic
#11051E #2F0F52 #4D1886 #6B21BA #893CDC

Accessibility & contrast

On white

11.73
#4D1886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D1886
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1886#FFFFFF#000000##FFFFFF
##4D18861.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003784
Tritanopia (blue-blind)
#3F374F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4d1886;
/* rgb */ color: rgb(77, 24, 134);
/* oklch */ color: oklch(36.2% 0.167 299.4);
Tailwind
colors: {
  custom: {
    50: '#855caa',
    500: '#4d1886',
    950: '#000000',
  },
}
SCSS
$custom: #4d1886;
$custom-light: #855caa;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1886",
  "rgb": {
    "r": 77,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 268.909,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36166,
    "c": 0.16698,
    "h": 299.4
  },
  "luminance": 0.03952
}

Semantic roles & 50–950 ramp

primary
#4D1886
secondary
#7FBA40
accent
#EC3B97
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4D1886

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

Preview Lab → · Contrast checker → · Palette generator →

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