#4D2986#4D2986

#4D2986 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.2% C 0.147 H 296.5°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#4D2986
RGBrgb(77, 41, 134)
HSLhsl(263, 53%, 34%)
HSVhsv(263, 69%, 53%)
CMYKcmyk(42.5%, 69.4%, 0%, 47.5%)
CIE-LABlab(26.40, 37.76, -46.11)
CIE-LCHlch(26.40, 59.60, 309.31°)
OKLaboklab(38.21% 0.0657 -0.1317)
OKLCHoklch(38.21% 0.147 296.5)
XYZxyz(8.1555, 4.8847, 23.0628)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D2986 #628629
analogous
#293486 #4D2986 #7C2986
triadic
#4D2986 #864D29 #29864D
tetradic
#4D2986 #862934 #628629 #29867C
square
#4D2986 #862934 #628629 #29867C
split-complementary
#4D2986 #867C29 #348629
monochromatic
#170C28 #321B57 #4D2986 #6837B5 #885CCD

Accessibility & contrast

On white

10.62
#4D2986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#4D2986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D2986
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D2986#FFFFFF#000000##FFFFFF
##4D29861.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F89
Deuteranopia (green-blind)
#003D84
Tritanopia (blue-blind)
#3E3F54
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4d2986;
/* rgb */ color: rgb(77, 41, 134);
/* oklch */ color: oklch(38.2% 0.147 296.5);
Tailwind
colors: {
  custom: {
    50: '#8465aa',
    500: '#4d2986',
    950: '#000000',
  },
}
SCSS
$custom: #4d2986;
$custom-light: #8465aa;
$custom-dark: #000000;
JSON
{
  "hex": "#4d2986",
  "rgb": {
    "r": 77,
    "g": 41,
    "b": 134
  },
  "hsl": {
    "h": 263.226,
    "s": 53.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38208,
    "c": 0.14716,
    "h": 296.5
  },
  "luminance": 0.04885
}

Semantic roles & 50–950 ramp

primary
#4D2986
secondary
#90B358
accent
#DD4BA4
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4D2986

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

Preview Lab → · Contrast checker → · Palette generator →

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