#4D31B7#4D31B7

#4D31B7 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.197 H 284.3°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#4D31B7
RGBrgb(77, 49, 183)
HSLhsl(253, 58%, 45%)
HSVhsv(253, 73%, 72%)
CMYKcmyk(57.9%, 73.2%, 0%, 28.2%)
CIE-LABlab(32.24, 47.71, -66.36)
CIE-LCHlch(32.24, 81.73, 305.71°)
OKLaboklab(43.69% 0.0487 -0.1911)
OKLCHoklch(43.69% 0.197 284.3)
XYZxyz(12.7035, 7.1925, 45.5095)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D31B7 #9BB731
analogous
#3158B7 #4D31B7 #9031B7
triadic
#4D31B7 #B74D31 #31B74D
tetradic
#4D31B7 #B73158 #9BB731 #31B790
square
#4D31B7 #B73158 #9BB731 #31B790
split-complementary
#4D31B7 #B79031 #58B731
monochromatic
#241756 #392487 #4D31B7 #6E54D1 #9784DE

Accessibility & contrast

On white

8.61
#4D31B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#4D31B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D31B7
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D31B7#FFFFFF#000000##FFFFFF
##4D31B71.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BB
Deuteranopia (green-blind)
#0047B4
Tritanopia (blue-blind)
#125671
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4d31b7;
/* rgb */ color: rgb(77, 49, 183);
/* oklch */ color: oklch(43.7% 0.197 284.3);
Tailwind
colors: {
  custom: {
    50: '#8b6cce',
    500: '#4d31b7',
    950: '#000000',
  },
}
SCSS
$custom: #4d31b7;
$custom-light: #8b6cce;
$custom-dark: #000000;
JSON
{
  "hex": "#4d31b7",
  "rgb": {
    "r": 77,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 252.537,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.43687,
    "c": 0.19722,
    "h": 284.3
  },
  "luminance": 0.07193
}

Semantic roles & 50–950 ramp

primary
#4D31B7
secondary
#B8C87C
accent
#E147C1
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4D31B7

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

Preview Lab → · Contrast checker → · Palette generator →

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