#4C31C6#4C31C6

#4C31C6 is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.0% C 0.215 H 281.7°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#4C31C6
RGBrgb(76, 49, 198)
HSLhsl(251, 60%, 48%)
HSVhsv(251, 75%, 78%)
CMYKcmyk(61.6%, 75.3%, 0%, 22.4%)
CIE-LABlab(33.58, 52.02, -72.99)
CIE-LCHlch(33.58, 89.63, 305.48°)
OKLaboklab(45.04% 0.0437 -0.2105)
OKLCHoklch(45.04% 0.215 281.7)
XYZxyz(14.2687, 7.8093, 54.1706)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C31C6 #ABC631
analogous
#3161C6 #4C31C6 #9631C6
triadic
#4C31C6 #C64C31 #31C64C
tetradic
#4C31C6 #C63161 #ABC631 #31C696
square
#4C31C6 #C63161 #ABC631 #31C696
split-complementary
#4C31C6 #C69631 #61C631
monochromatic
#261964 #392595 #4C31C6 #735DD7 #9E8EE3

Accessibility & contrast

On white

8.20
#4C31C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#4C31C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C31C6
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C31C6#FFFFFF#000000##FFFFFF
##4C31C61.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CA
Deuteranopia (green-blind)
#004AC3
Tritanopia (blue-blind)
#005C7A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4c31c6;
/* rgb */ color: rgb(76, 49, 198);
/* oklch */ color: oklch(45.0% 0.215 281.7);
Tailwind
colors: {
  custom: {
    50: '#8d6dd9',
    500: '#4c31c6',
    950: '#000000',
  },
}
SCSS
$custom: #4c31c6;
$custom-light: #8d6dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c31c6",
  "rgb": {
    "r": 76,
    "g": 49,
    "b": 198
  },
  "hsl": {
    "h": 250.872,
    "s": 60.324,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45043,
    "c": 0.21501,
    "h": 281.7
  },
  "luminance": 0.0781
}

Semantic roles & 50–950 ramp

primary
#4C31C6
secondary
#C0CE85
accent
#E344C7
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4C31C6

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

Preview Lab → · Contrast checker → · Palette generator →

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