#4D31CF#4D31CF

#4D31CF is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.0% C 0.225 H 281.0°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#4D31CF
RGBrgb(77, 49, 207)
HSLhsl(251, 62%, 50%)
HSVhsv(251, 76%, 81%)
CMYKcmyk(62.8%, 76.3%, 0%, 18.8%)
CIE-LABlab(34.56, 54.77, -76.63)
CIE-LCHlch(34.56, 94.19, 305.56°)
OKLaboklab(46.01% 0.0428 -0.2211)
OKLCHoklch(46.01% 0.225 281)
XYZxyz(15.4178, 8.2782, 59.8048)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D31CF #B3CF31
analogous
#3164CF #4D31CF #9C31CF
triadic
#4D31CF #CF4D31 #31CF4D
tetradic
#4D31CF #CF3164 #B3CF31 #31CF9C
square
#4D31CF #CF3164 #B3CF31 #31CF9C
split-complementary
#4D31CF #CF9C31 #64CF31
monochromatic
#28196C #3A259E #4D31CF #7863DB #A394E6

Accessibility & contrast

On white

7.91
#4D31CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#4D31CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D31CF
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D31CF#FFFFFF#000000##FFFFFF
##4D31CF1.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057D3
Deuteranopia (green-blind)
#004BCC
Tritanopia (blue-blind)
#005F7F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4d31cf;
/* rgb */ color: rgb(77, 49, 207);
/* oklch */ color: oklch(46.0% 0.225 281.0);
Tailwind
colors: {
  custom: {
    50: '#8f6ddf',
    500: '#4d31cf',
    950: '#000000',
  },
}
SCSS
$custom: #4d31cf;
$custom-light: #8f6ddf;
$custom-dark: #000000;
JSON
{
  "hex": "#4d31cf",
  "rgb": {
    "r": 77,
    "g": 49,
    "b": 207
  },
  "hsl": {
    "h": 250.633,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.46013,
    "c": 0.22522,
    "h": 281
  },
  "luminance": 0.08279
}

Semantic roles & 50–950 ramp

primary
#4D31CF
secondary
#C5D18B
accent
#E543C8
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4D31CF

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

Preview Lab → · Contrast checker → · Palette generator →

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