#4D31C3#4D31C3

#4D31C3 is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 44.8% C 0.211 H 282.5°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#4D31C3
RGBrgb(77, 49, 195)
HSLhsl(252, 60%, 48%)
HSVhsv(252, 75%, 76%)
CMYKcmyk(60.5%, 74.9%, 0%, 23.5%)
CIE-LABlab(33.38, 51.26, -71.56)
CIE-LCHlch(33.38, 88.03, 305.61°)
OKLaboklab(44.83% 0.0458 -0.2063)
OKLCHoklch(44.83% 0.211 282.5)
XYZxyz(14.0061, 7.7136, 52.3700)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D31C3 #A7C331
analogous
#315EC3 #4D31C3 #9631C3
triadic
#4D31C3 #C34D31 #31C34D
tetradic
#4D31C3 #C3315E #A7C331 #31C396
square
#4D31C3 #C3315E #A7C331 #31C396
split-complementary
#4D31C3 #C39631 #5EC331
monochromatic
#261861 #3A2592 #4D31C3 #735BD6 #9D8CE2

Accessibility & contrast

On white

8.26
#4D31C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#4D31C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D31C3
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D31C3#FFFFFF#000000##FFFFFF
##4D31C31.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C7
Deuteranopia (green-blind)
#0049C0
Tritanopia (blue-blind)
#005A78
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4d31c3;
/* rgb */ color: rgb(77, 49, 195);
/* oklch */ color: oklch(44.8% 0.211 282.5);
Tailwind
colors: {
  custom: {
    50: '#8d6dd6',
    500: '#4d31c3',
    950: '#000000',
  },
}
SCSS
$custom: #4d31c3;
$custom-light: #8d6dd6;
$custom-dark: #000000;
JSON
{
  "hex": "#4d31c3",
  "rgb": {
    "r": 77,
    "g": 49,
    "b": 195
  },
  "hsl": {
    "h": 251.507,
    "s": 59.836,
    "l": 47.843
  },
  "oklch": {
    "l": 0.44834,
    "c": 0.21137,
    "h": 282.5
  },
  "luminance": 0.07715
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4D31C3

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

Preview Lab → · Contrast checker → · Palette generator →

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