#4D1786#4D1786

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

Color values

HEX#4D1786
RGBrgb(77, 23, 134)
HSLhsl(269, 71%, 31%)
HSVhsv(269, 83%, 53%)
CMYKcmyk(42.5%, 82.8%, 0%, 47.5%)
CIE-LABlab(23.38, 46.33, -51.05)
CIE-LCHlch(23.38, 68.94, 312.22°)
OKLaboklab(36.07% 0.0829 -0.1461)
OKLCHoklch(36.07% 0.168 299.6)
XYZxyz(7.6689, 3.9117, 22.9006)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1786 #508617
analogous
#171886 #4D1786 #841786
triadic
#4D1786 #864D17 #17864D
tetradic
#4D1786 #861718 #508617 #178684
square
#4D1786 #861718 #508617 #178684
split-complementary
#4D1786 #868417 #188617
monochromatic
#11051E #2F0E52 #4D1786 #6B20BA #893ADD

Accessibility & contrast

On white

11.78
#4D1786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4D1786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1786
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1786#FFFFFF#000000##FFFFFF
##4D17861.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d1786;
/* rgb */ color: rgb(77, 23, 134);
/* oklch */ color: oklch(36.1% 0.168 299.6);
Tailwind
colors: {
  custom: {
    50: '#855caa',
    500: '#4d1786',
    950: '#000000',
  },
}
SCSS
$custom: #4d1786;
$custom-light: #855caa;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1786",
  "rgb": {
    "r": 77,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 269.189,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36072,
    "c": 0.16792,
    "h": 299.6
  },
  "luminance": 0.03912
}

Semantic roles & 50–950 ramp

primary
#4D1786
secondary
#7EBA3F
accent
#ED3A96
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4D1786

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

Preview Lab → · Contrast checker → · Palette generator →

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