#4C31C5#4C31C5

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

Color values

HEX#4C31C5
RGBrgb(76, 49, 197)
HSLhsl(251, 60%, 48%)
HSVhsv(251, 75%, 77%)
CMYKcmyk(61.4%, 75.1%, 0%, 22.7%)
CIE-LABlab(33.48, 51.72, -72.56)
CIE-LCHlch(33.48, 89.11, 305.48°)
OKLaboklab(44.95% 0.0439 -0.2093)
OKLCHoklch(44.95% 0.214 281.9)
XYZxyz(14.1537, 7.7633, 53.5651)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C31C5 #AAC531
analogous
#3160C5 #4C31C5 #9631C5
triadic
#4C31C5 #C54C31 #31C54C
tetradic
#4C31C5 #C53160 #AAC531 #31C596
square
#4C31C5 #C53160 #AAC531 #31C596
split-complementary
#4C31C5 #C59631 #60C531
monochromatic
#261963 #392594 #4C31C5 #735DD7 #9D8EE3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4C31C5#FFFFFF#000000##FFFFFF
##4C31C51.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)
#0054C9
Deuteranopia (green-blind)
#0049C2
Tritanopia (blue-blind)
#005B79
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4c31c5;
/* rgb */ color: rgb(76, 49, 197);
/* oklch */ color: oklch(44.9% 0.214 281.9);
Tailwind
colors: {
  custom: {
    50: '#8d6dd8',
    500: '#4c31c5',
    950: '#000000',
  },
}
SCSS
$custom: #4c31c5;
$custom-light: #8d6dd8;
$custom-dark: #000000;
JSON
{
  "hex": "#4c31c5",
  "rgb": {
    "r": 76,
    "g": 49,
    "b": 197
  },
  "hsl": {
    "h": 250.946,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.44945,
    "c": 0.21385,
    "h": 281.9
  },
  "luminance": 0.07764
}

Semantic roles & 50–950 ramp

primary
#4C31C5
secondary
#C0CD85
accent
#E344C6
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4C31C5

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

Preview Lab → · Contrast checker → · Palette generator →

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