#4D31AE#4D31AE

#4D31AE is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.186 H 285.8°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#4D31AE
RGBrgb(77, 49, 174)
HSLhsl(253, 56%, 44%)
HSVhsv(253, 72%, 68%)
CMYKcmyk(55.7%, 71.8%, 0%, 31.8%)
CIE-LABlab(31.42, 45.03, -62.36)
CIE-LCHlch(31.42, 76.92, 305.83°)
OKLaboklab(42.85% 0.0506 -0.1794)
OKLCHoklch(42.85% 0.186 285.8)
XYZxyz(11.7966, 6.8297, 40.7329)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D31AE #92AE31
analogous
#3153AE #4D31AE #8B31AE
triadic
#4D31AE #AE4D31 #31AE4D
tetradic
#4D31AE #AE3153 #92AE31 #31AE8B
square
#4D31AE #AE3153 #92AE31 #31AE8B
split-complementary
#4D31AE #AE8B31 #53AE31
monochromatic
#23164E #38247E #4D31AE #6B4FCD #937FDB

Accessibility & contrast

On white

8.88
#4D31AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#4D31AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D31AE
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D31AE#FFFFFF#000000##FFFFFF
##4D31AE1.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB2
Deuteranopia (green-blind)
#0046AC
Tritanopia (blue-blind)
#21526C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4d31ae;
/* rgb */ color: rgb(77, 49, 174);
/* oklch */ color: oklch(42.9% 0.186 285.8);
Tailwind
colors: {
  custom: {
    50: '#896cc7',
    500: '#4d31ae',
    950: '#000000',
  },
}
SCSS
$custom: #4d31ae;
$custom-light: #896cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d31ae",
  "rgb": {
    "r": 77,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 253.44,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.4285,
    "c": 0.1864,
    "h": 285.8
  },
  "luminance": 0.0683
}

Semantic roles & 50–950 ramp

primary
#4D31AE
secondary
#B3C477
accent
#DF48BE
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #4D31AE

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

Preview Lab → · Contrast checker → · Palette generator →

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