#4E31CC#4E31CC

#4E31CC is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.8% C 0.222 H 281.7°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#4E31CC
RGBrgb(78, 49, 204)
HSLhsl(251, 61%, 50%)
HSVhsv(251, 76%, 80%)
CMYKcmyk(61.8%, 76%, 0%, 20%)
CIE-LABlab(34.34, 54.01, -75.23)
CIE-LCHlch(34.34, 92.61, 305.68°)
OKLaboklab(45.8% 0.045 -0.217)
OKLCHoklch(45.8% 0.222 281.7)
XYZxyz(15.1359, 8.1749, 57.8953)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E31CC #AFCC31
analogous
#3161CC #4E31CC #9C31CC
triadic
#4E31CC #CC4E31 #31CC4E
tetradic
#4E31CC #CC3161 #AFCC31 #31CC9C
square
#4E31CC #CC3161 #AFCC31 #31CC9C
split-complementary
#4E31CC #CC9C31 #61CC31
monochromatic
#281969 #3B259B #4E31CC #7861D9 #A292E5

Accessibility & contrast

On white

7.97
#4E31CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#4E31CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E31CC
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E31CC#FFFFFF#000000##FFFFFF
##4E31CC1.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056D0
Deuteranopia (green-blind)
#004BC9
Tritanopia (blue-blind)
#005E7D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4e31cc;
/* rgb */ color: rgb(78, 49, 204);
/* oklch */ color: oklch(45.8% 0.222 281.7);
Tailwind
colors: {
  custom: {
    50: '#8f6ddd',
    500: '#4e31cc',
    950: '#000000',
  },
}
SCSS
$custom: #4e31cc;
$custom-light: #8f6ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e31cc",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 204
  },
  "hsl": {
    "h": 251.226,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.45797,
    "c": 0.22162,
    "h": 281.7
  },
  "luminance": 0.08176
}

Semantic roles & 50–950 ramp

primary
#4E31CC
secondary
#C3D089
accent
#E443C6
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4E31CC

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

Preview Lab → · Contrast checker → · Palette generator →

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