#4C31C9#4C31C9

#4C31C9 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.3% C 0.218 H 281.3°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#4C31C9
RGBrgb(76, 49, 201)
HSLhsl(251, 61%, 49%)
HSVhsv(251, 76%, 79%)
CMYKcmyk(62.2%, 75.6%, 0%, 21.2%)
CIE-LABlab(33.88, 52.90, -74.26)
CIE-LCHlch(33.88, 91.17, 305.47°)
OKLaboklab(45.34% 0.0429 -0.2142)
OKLCHoklch(45.34% 0.218 281.3)
XYZxyz(14.6181, 7.9491, 56.0110)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C31C9 #AEC931
analogous
#3162C9 #4C31C9 #9831C9
triadic
#4C31C9 #C94C31 #31C94C
tetradic
#4C31C9 #C93162 #AEC931 #31C998
square
#4C31C9 #C93162 #AEC931 #31C998
split-complementary
#4C31C9 #C99831 #62C931
monochromatic
#271967 #392598 #4C31C9 #755FD8 #9F90E4

Accessibility & contrast

On white

8.11
#4C31C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#4C31C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C31C9
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C31C9#FFFFFF#000000##FFFFFF
##4C31C91.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055CD
Deuteranopia (green-blind)
#004AC6
Tritanopia (blue-blind)
#005D7B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4c31c9;
/* rgb */ color: rgb(76, 49, 201);
/* oklch */ color: oklch(45.3% 0.218 281.3);
Tailwind
colors: {
  custom: {
    50: '#8d6ddb',
    500: '#4c31c9',
    950: '#000000',
  },
}
SCSS
$custom: #4c31c9;
$custom-light: #8d6ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#4c31c9",
  "rgb": {
    "r": 76,
    "g": 49,
    "b": 201
  },
  "hsl": {
    "h": 250.658,
    "s": 60.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.45338,
    "c": 0.21849,
    "h": 281.3
  },
  "luminance": 0.0795
}

Semantic roles & 50–950 ramp

primary
#4C31C9
secondary
#C2CF87
accent
#E444C7
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4C31C9

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

Preview Lab → · Contrast checker → · Palette generator →

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