#4E31D0#4E31D0

#4E31D0 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.2% C 0.226 H 281.2°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#4E31D0
RGBrgb(78, 49, 208)
HSLhsl(251, 63%, 50%)
HSVhsv(251, 76%, 82%)
CMYKcmyk(62.5%, 76.4%, 0%, 18.4%)
CIE-LABlab(34.74, 55.18, -76.90)
CIE-LCHlch(34.74, 94.65, 305.66°)
OKLaboklab(46.19% 0.044 -0.2219)
OKLCHoklch(46.19% 0.226 281.2)
XYZxyz(15.6218, 8.3692, 60.4545)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E31D0 #B3D031
analogous
#3164D0 #4E31D0 #9D31D0
triadic
#4E31D0 #D04E31 #31D04E
tetradic
#4E31D0 #D03164 #B3D031 #31D09D
square
#4E31D0 #D03164 #B3D031 #31D09D
split-complementary
#4E31D0 #D09D31 #64D031
monochromatic
#28196E #3B249F #4E31D0 #7963DB #A495E7

Accessibility & contrast

On white

7.85
#4E31D0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#4E31D0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E31D0
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E31D0#FFFFFF#000000##FFFFFF
##4E31D01.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057D4
Deuteranopia (green-blind)
#004CCD
Tritanopia (blue-blind)
#00607F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4e31d0;
/* rgb */ color: rgb(78, 49, 208);
/* oklch */ color: oklch(46.2% 0.226 281.2);
Tailwind
colors: {
  custom: {
    50: '#8f6de0',
    500: '#4e31d0',
    950: '#000000',
  },
}
SCSS
$custom: #4e31d0;
$custom-light: #8f6de0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e31d0",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 208
  },
  "hsl": {
    "h": 250.943,
    "s": 62.846,
    "l": 50.392
  },
  "oklch": {
    "l": 0.46193,
    "c": 0.22619,
    "h": 281.2
  },
  "luminance": 0.0837
}

Semantic roles & 50–950 ramp

primary
#4E31D0
secondary
#C5D28B
accent
#E642C8
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4E31D0

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

Preview Lab → · Contrast checker → · Palette generator →

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