#4D31CC#4D31CC

#4D31CC is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.7% C 0.222 H 281.3°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#4D31CC
RGBrgb(77, 49, 204)
HSLhsl(251, 61%, 50%)
HSVhsv(251, 76%, 80%)
CMYKcmyk(62.3%, 76%, 0%, 20%)
CIE-LABlab(34.26, 53.90, -75.37)
CIE-LCHlch(34.26, 92.66, 305.57°)
OKLaboklab(45.72% 0.0436 -0.2175)
OKLCHoklch(45.72% 0.222 281.3)
XYZxyz(15.0545, 8.1329, 57.8915)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D31CC #B0CC31
analogous
#3162CC #4D31CC #9B31CC
triadic
#4D31CC #CC4D31 #31CC4D
tetradic
#4D31CC #CC3162 #B0CC31 #31CC9B
square
#4D31CC #CC3162 #B0CC31 #31CC9B
split-complementary
#4D31CC #CC9B31 #62CC31
monochromatic
#281969 #3A259B #4D31CC #7761D9 #A192E5

Accessibility & contrast

On white

7.99
#4D31CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#4D31CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D31CC
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D31CC#FFFFFF#000000##FFFFFF
##4D31CC1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056D0
Deuteranopia (green-blind)
#004BC9
Tritanopia (blue-blind)
#005E7D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4d31cc;
/* rgb */ color: rgb(77, 49, 204);
/* oklch */ color: oklch(45.7% 0.222 281.3);
Tailwind
colors: {
  custom: {
    50: '#8e6ddd',
    500: '#4d31cc',
    950: '#000000',
  },
}
SCSS
$custom: #4d31cc;
$custom-light: #8e6ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#4d31cc",
  "rgb": {
    "r": 77,
    "g": 49,
    "b": 204
  },
  "hsl": {
    "h": 250.839,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.45716,
    "c": 0.22178,
    "h": 281.3
  },
  "luminance": 0.08134
}

Semantic roles & 50–950 ramp

primary
#4D31CC
secondary
#C3D089
accent
#E443C7
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4D31CC

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

Preview Lab → · Contrast checker → · Palette generator →

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