#4D2086#4D2086

#4D2086 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.158 H 298.3°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#4D2086
RGBrgb(77, 32, 134)
HSLhsl(266, 61%, 33%)
HSVhsv(266, 76%, 53%)
CMYKcmyk(42.5%, 76.1%, 0%, 47.5%)
CIE-LABlab(24.74, 42.41, -48.82)
CIE-LCHlch(24.74, 64.67, 310.98°)
OKLaboklab(37.03% 0.0751 -0.1396)
OKLCHoklch(37.03% 0.158 298.3)
XYZxyz(7.8790, 4.3319, 22.9707)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2086 #598620
analogous
#202686 #4D2086 #802086
triadic
#4D2086 #864D20 #20864D
tetradic
#4D2086 #862026 #598620 #208680
square
#4D2086 #862026 #598620 #208680
split-complementary
#4D2086 #868020 #268620
monochromatic
#140823 #311455 #4D2086 #692CB7 #884CD4

Accessibility & contrast

On white

11.25
#4D2086 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4D2086 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2086
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2086#FFFFFF#000000##FFFFFF
##4D20861.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B89
Deuteranopia (green-blind)
#003A84
Tritanopia (blue-blind)
#3F3A51
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4d2086;
/* rgb */ color: rgb(77, 32, 134);
/* oklch */ color: oklch(37.0% 0.158 298.3);
Tailwind
colors: {
  custom: {
    50: '#8560aa',
    500: '#4d2086',
    950: '#000000',
  },
}
SCSS
$custom: #4d2086;
$custom-light: #8560aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2086",
  "rgb": {
    "r": 77,
    "g": 32,
    "b": 134
  },
  "hsl": {
    "h": 266.471,
    "s": 61.446,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37025,
    "c": 0.15849,
    "h": 298.3
  },
  "luminance": 0.04332
}

Semantic roles & 50–950 ramp

primary
#4D2086
secondary
#87B74B
accent
#E5439D
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4D2086

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

Preview Lab → · Contrast checker → · Palette generator →

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