#4D31C2#4D31C2

#4D31C2 is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 44.7% C 0.210 H 282.7°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#4D31C2
RGBrgb(77, 49, 194)
HSLhsl(252, 60%, 48%)
HSVhsv(252, 75%, 76%)
CMYKcmyk(60.3%, 74.7%, 0%, 23.9%)
CIE-LABlab(33.28, 50.96, -71.14)
CIE-LCHlch(33.28, 87.51, 305.62°)
OKLaboklab(44.74% 0.0461 -0.2051)
OKLCHoklch(44.74% 0.21 282.7)
XYZxyz(13.8935, 7.6685, 51.7765)
Luminance0.0767 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D31C2 #A6C231
analogous
#315EC2 #4D31C2 #9531C2
triadic
#4D31C2 #C24D31 #31C24D
tetradic
#4D31C2 #C2315E #A6C231 #31C295
square
#4D31C2 #C2315E #A6C231 #31C295
split-complementary
#4D31C2 #C29531 #5EC231
monochromatic
#261860 #3A2591 #4D31C2 #725BD6 #9C8CE2

Accessibility & contrast

On white

8.29
#4D31C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#4D31C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D31C2
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D31C2#FFFFFF#000000##FFFFFF
##4D31C21.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C6
Deuteranopia (green-blind)
#0049BF
Tritanopia (blue-blind)
#005A77
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4d31c2;
/* rgb */ color: rgb(77, 49, 194);
/* oklch */ color: oklch(44.7% 0.210 282.7);
Tailwind
colors: {
  custom: {
    50: '#8d6dd6',
    500: '#4d31c2',
    950: '#000000',
  },
}
SCSS
$custom: #4d31c2;
$custom-light: #8d6dd6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d31c2",
  "rgb": {
    "r": 77,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 251.586,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.44737,
    "c": 0.2102,
    "h": 282.7
  },
  "luminance": 0.07669
}

Semantic roles & 50–950 ramp

primary
#4D31C2
secondary
#BECC83
accent
#E345C4
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4D31C2

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

Preview Lab → · Contrast checker → · Palette generator →

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