#4D31C6#4D31C6

#4D31C6 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.1% C 0.215 H 282.1°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#4D31C6
RGBrgb(77, 49, 198)
HSLhsl(251, 60%, 48%)
HSVhsv(251, 75%, 78%)
CMYKcmyk(61.1%, 75.3%, 0%, 22.4%)
CIE-LABlab(33.67, 52.14, -72.84)
CIE-LCHlch(33.67, 89.58, 305.59°)
OKLaboklab(45.13% 0.0451 -0.2101)
OKLCHoklch(45.13% 0.215 282.1)
XYZxyz(14.3487, 7.8506, 54.1743)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D31C6 #AAC631
analogous
#315FC6 #4D31C6 #9731C6
triadic
#4D31C6 #C64D31 #31C64D
tetradic
#4D31C6 #C6315F #AAC631 #31C697
square
#4D31C6 #C6315F #AAC631 #31C697
split-complementary
#4D31C6 #C69731 #5FC631
monochromatic
#271964 #3A2595 #4D31C6 #745DD7 #9E8EE3

Accessibility & contrast

On white

8.17
#4D31C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#4D31C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D31C6
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D31C6#FFFFFF#000000##FFFFFF
##4D31C61.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CA
Deuteranopia (green-blind)
#004AC3
Tritanopia (blue-blind)
#005C7A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4d31c6;
/* rgb */ color: rgb(77, 49, 198);
/* oklch */ color: oklch(45.1% 0.215 282.1);
Tailwind
colors: {
  custom: {
    50: '#8d6dd9',
    500: '#4d31c6',
    950: '#000000',
  },
}
SCSS
$custom: #4d31c6;
$custom-light: #8d6dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#4d31c6",
  "rgb": {
    "r": 77,
    "g": 49,
    "b": 198
  },
  "hsl": {
    "h": 251.275,
    "s": 60.324,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45126,
    "c": 0.21486,
    "h": 282.1
  },
  "luminance": 0.07852
}

Semantic roles & 50–950 ramp

primary
#4D31C6
secondary
#C0CE85
accent
#E344C6
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4D31C6

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

Preview Lab → · Contrast checker → · Palette generator →

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