#4C31C3#4C31C3

#4C31C3 is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 44.8% C 0.212 H 282.1°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#4C31C3
RGBrgb(76, 49, 195)
HSLhsl(251, 60%, 48%)
HSVhsv(251, 75%, 76%)
CMYKcmyk(61%, 74.9%, 0%, 23.5%)
CIE-LABlab(33.29, 51.13, -71.71)
CIE-LCHlch(33.29, 88.08, 305.49°)
OKLaboklab(44.75% 0.0444 -0.2068)
OKLCHoklch(44.75% 0.212 282.1)
XYZxyz(13.9261, 7.6723, 52.3662)
Luminance0.0767 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C31C3 #A8C331
analogous
#315FC3 #4C31C3 #9531C3
triadic
#4C31C3 #C34C31 #31C34C
tetradic
#4C31C3 #C3315F #A8C331 #31C395
square
#4C31C3 #C3315F #A8C331 #31C395
split-complementary
#4C31C3 #C39531 #5FC331
monochromatic
#261861 #392592 #4C31C3 #725BD6 #9C8CE2

Accessibility & contrast

On white

8.29
#4C31C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#4C31C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C31C3
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C31C3#FFFFFF#000000##FFFFFF
##4C31C31.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C7
Deuteranopia (green-blind)
#0049C0
Tritanopia (blue-blind)
#005B78
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4c31c3;
/* rgb */ color: rgb(76, 49, 195);
/* oklch */ color: oklch(44.8% 0.212 282.1);
Tailwind
colors: {
  custom: {
    50: '#8c6dd6',
    500: '#4c31c3',
    950: '#000000',
  },
}
SCSS
$custom: #4c31c3;
$custom-light: #8c6dd6;
$custom-dark: #000000;
JSON
{
  "hex": "#4c31c3",
  "rgb": {
    "r": 76,
    "g": 49,
    "b": 195
  },
  "hsl": {
    "h": 251.096,
    "s": 59.836,
    "l": 47.843
  },
  "oklch": {
    "l": 0.4475,
    "c": 0.21151,
    "h": 282.1
  },
  "luminance": 0.07673
}

Semantic roles & 50–950 ramp

primary
#4C31C3
secondary
#BFCC83
accent
#E345C6
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #4C31C3

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

Preview Lab → · Contrast checker → · Palette generator →

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