#4D31C4#4D31C4

#4D31C4 is a dark, highly saturated violet. Relative luminance 0.078; OKLCH L 44.9% C 0.213 H 282.4°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#4D31C4
RGBrgb(77, 49, 196)
HSLhsl(251, 60%, 48%)
HSVhsv(251, 75%, 77%)
CMYKcmyk(60.7%, 75%, 0%, 23.1%)
CIE-LABlab(33.48, 51.55, -71.99)
CIE-LCHlch(33.48, 88.55, 305.61°)
OKLaboklab(44.93% 0.0456 -0.2076)
OKLCHoklch(44.93% 0.213 282.4)
XYZxyz(14.1196, 7.7589, 52.9674)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D31C4 #A8C431
analogous
#315EC4 #4D31C4 #9731C4
triadic
#4D31C4 #C44D31 #31C44D
tetradic
#4D31C4 #C4315E #A8C431 #31C497
square
#4D31C4 #C4315E #A8C431 #31C497
split-complementary
#4D31C4 #C49731 #5EC431
monochromatic
#271962 #3A2593 #4D31C4 #735CD6 #9D8DE2

Accessibility & contrast

On white

8.23
#4D31C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#4D31C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D31C4
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D31C4#FFFFFF#000000##FFFFFF
##4D31C41.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C8
Deuteranopia (green-blind)
#004AC1
Tritanopia (blue-blind)
#005B78
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4d31c4;
/* rgb */ color: rgb(77, 49, 196);
/* oklch */ color: oklch(44.9% 0.213 282.4);
Tailwind
colors: {
  custom: {
    50: '#8d6dd7',
    500: '#4d31c4',
    950: '#000000',
  },
}
SCSS
$custom: #4d31c4;
$custom-light: #8d6dd7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d31c4",
  "rgb": {
    "r": 77,
    "g": 49,
    "b": 196
  },
  "hsl": {
    "h": 251.429,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.44931,
    "c": 0.21253,
    "h": 282.4
  },
  "luminance": 0.0776
}

Semantic roles & 50–950 ramp

primary
#4D31C4
secondary
#BFCD84
accent
#E345C5
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4D31C4

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

Preview Lab → · Contrast checker → · Palette generator →

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