#4D31A4#4D31A4

#4D31A4 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 41.9% C 0.174 H 287.6°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#4D31A4
RGBrgb(77, 49, 164)
HSLhsl(255, 54%, 42%)
HSVhsv(255, 70%, 64%)
CMYKcmyk(53%, 70.1%, 0%, 35.7%)
CIE-LABlab(30.53, 42.04, -57.80)
CIE-LCHlch(30.53, 71.47, 306.03°)
OKLaboklab(41.95% 0.0526 -0.166)
OKLCHoklch(41.95% 0.174 287.6)
XYZxyz(10.8577, 6.4542, 35.7884)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D31A4 #88A431
analogous
#314EA4 #4D31A4 #8731A4
triadic
#4D31A4 #A44D31 #31A44D
tetradic
#4D31A4 #A4314E #88A431 #31A487
square
#4D31A4 #A4314E #88A431 #31A487
split-complementary
#4D31A4 #A48731 #4EA431
monochromatic
#211546 #372375 #4D31A4 #6849C9 #9079D7

Accessibility & contrast

On white

9.17
#4D31A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4D31A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D31A4
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D31A4#FFFFFF#000000##FFFFFF
##4D31A41.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA7
Deuteranopia (green-blind)
#0045A2
Tritanopia (blue-blind)
#2B4F67
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4d31a4;
/* rgb */ color: rgb(77, 49, 164);
/* oklch */ color: oklch(41.9% 0.174 287.6);
Tailwind
colors: {
  custom: {
    50: '#886bc0',
    500: '#4d31a4',
    950: '#000000',
  },
}
SCSS
$custom: #4d31a4;
$custom-light: #886bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d31a4",
  "rgb": {
    "r": 77,
    "g": 49,
    "b": 164
  },
  "hsl": {
    "h": 254.609,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41946,
    "c": 0.17415,
    "h": 287.6
  },
  "luminance": 0.06455
}

Semantic roles & 50–950 ramp

primary
#4D31A4
secondary
#ACBF72
accent
#DD4ABA
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4D31A4

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

Preview Lab → · Contrast checker → · Palette generator →

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