#4D1986#4D1986

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

Color values

HEX#4D1986
RGBrgb(77, 25, 134)
HSLhsl(269, 69%, 31%)
HSVhsv(269, 81%, 53%)
CMYKcmyk(42.5%, 81.3%, 0%, 47.5%)
CIE-LABlab(23.65, 45.53, -50.60)
CIE-LCHlch(23.65, 68.07, 311.98°)
OKLaboklab(36.26% 0.0813 -0.1447)
OKLCHoklch(36.26% 0.166 299.3)
XYZxyz(7.7102, 3.9942, 22.9144)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1986 #528619
analogous
#191B86 #4D1986 #831986
triadic
#4D1986 #864D19 #19864D
tetradic
#4D1986 #86191B #528619 #198683
square
#4D1986 #86191B #528619 #198683
split-complementary
#4D1986 #868319 #1B8619
monochromatic
#12061F #2F0F52 #4D1986 #6B23BA #893EDB

Accessibility & contrast

On white

11.67
#4D1986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4D1986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1986
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1986#FFFFFF#000000##FFFFFF
##4D19861.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d1986;
/* rgb */ color: rgb(77, 25, 134);
/* oklch */ color: oklch(36.3% 0.166 299.3);
Tailwind
colors: {
  custom: {
    50: '#855daa',
    500: '#4d1986',
    950: '#000000',
  },
}
SCSS
$custom: #4d1986;
$custom-light: #855daa;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1986",
  "rgb": {
    "r": 77,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 268.624,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36263,
    "c": 0.16601,
    "h": 299.3
  },
  "luminance": 0.03994
}

Semantic roles & 50–950 ramp

primary
#4D1986
secondary
#80BA41
accent
#EB3C98
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4D1986

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

Preview Lab → · Contrast checker → · Palette generator →

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