#4C31C8#4C31C8

#4C31C8 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.2% C 0.217 H 281.5°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#4C31C8
RGBrgb(76, 49, 200)
HSLhsl(251, 61%, 49%)
HSVhsv(251, 76%, 78%)
CMYKcmyk(62%, 75.5%, 0%, 21.6%)
CIE-LABlab(33.78, 52.61, -73.84)
CIE-LCHlch(33.78, 90.66, 305.47°)
OKLaboklab(45.24% 0.0432 -0.213)
OKLCHoklch(45.24% 0.217 281.5)
XYZxyz(14.5009, 7.9022, 55.3935)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C31C8 #ADC831
analogous
#3162C8 #4C31C8 #9831C8
triadic
#4C31C8 #C84C31 #31C84C
tetradic
#4C31C8 #C83162 #ADC831 #31C898
square
#4C31C8 #C83162 #ADC831 #31C898
split-complementary
#4C31C8 #C89831 #62C831
monochromatic
#271966 #392597 #4C31C8 #745FD8 #9F90E4

Accessibility & contrast

On white

8.14
#4C31C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#4C31C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C31C8
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C31C8#FFFFFF#000000##FFFFFF
##4C31C81.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CC
Deuteranopia (green-blind)
#004AC5
Tritanopia (blue-blind)
#005C7B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4c31c8;
/* rgb */ color: rgb(76, 49, 200);
/* oklch */ color: oklch(45.2% 0.217 281.5);
Tailwind
colors: {
  custom: {
    50: '#8d6dda',
    500: '#4c31c8',
    950: '#000000',
  },
}
SCSS
$custom: #4c31c8;
$custom-light: #8d6dda;
$custom-dark: #000000;
JSON
{
  "hex": "#4c31c8",
  "rgb": {
    "r": 76,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 250.728,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.4524,
    "c": 0.21733,
    "h": 281.5
  },
  "luminance": 0.07903
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C31C8

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

Preview Lab → · Contrast checker → · Palette generator →

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