#4E31C5#4E31C5

#4E31C5 is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.1% C 0.214 H 282.7°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#4E31C5
RGBrgb(78, 49, 197)
HSLhsl(252, 60%, 48%)
HSVhsv(252, 75%, 77%)
CMYKcmyk(60.4%, 75.1%, 0%, 22.7%)
CIE-LABlab(33.66, 51.97, -72.27)
CIE-LCHlch(33.66, 89.01, 305.72°)
OKLaboklab(45.11% 0.0468 -0.2084)
OKLCHoklch(45.11% 0.214 282.7)
XYZxyz(14.3151, 7.8466, 53.5727)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E31C5 #A8C531
analogous
#315EC5 #4E31C5 #9831C5
triadic
#4E31C5 #C54E31 #31C54E
tetradic
#4E31C5 #C5315E #A8C531 #31C598
square
#4E31C5 #C5315E #A8C531 #31C598
split-complementary
#4E31C5 #C59831 #5EC531
monochromatic
#271963 #3B2594 #4E31C5 #755DD7 #9E8EE3

Accessibility & contrast

On white

8.17
#4E31C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#4E31C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E31C5
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E31C5#FFFFFF#000000##FFFFFF
##4E31C51.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C9
Deuteranopia (green-blind)
#004AC2
Tritanopia (blue-blind)
#005B79
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4e31c5;
/* rgb */ color: rgb(78, 49, 197);
/* oklch */ color: oklch(45.1% 0.214 282.7);
Tailwind
colors: {
  custom: {
    50: '#8e6dd8',
    500: '#4e31c5',
    950: '#000000',
  },
}
SCSS
$custom: #4e31c5;
$custom-light: #8e6dd8;
$custom-dark: #000000;
JSON
{
  "hex": "#4e31c5",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 197
  },
  "hsl": {
    "h": 251.757,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.45113,
    "c": 0.21354,
    "h": 282.7
  },
  "luminance": 0.07848
}

Semantic roles & 50–950 ramp

primary
#4E31C5
secondary
#BFCD85
accent
#E344C4
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4E31C5

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

Preview Lab → · Contrast checker → · Palette generator →

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