#4E31D3#4E31D3

#4E31D3 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.5% C 0.230 H 280.8°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#4E31D3
RGBrgb(78, 49, 211)
HSLhsl(251, 65%, 51%)
HSVhsv(251, 77%, 83%)
CMYKcmyk(63%, 76.8%, 0%, 17.3%)
CIE-LABlab(35.04, 56.05, -78.14)
CIE-LCHlch(35.04, 96.16, 305.65°)
OKLaboklab(46.49% 0.0432 -0.2255)
OKLCHoklch(46.49% 0.23 280.8)
XYZxyz(15.9944, 8.5183, 62.4167)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E31D3 #B6D331
analogous
#3165D3 #4E31D3 #9F31D3
triadic
#4E31D3 #D34E31 #31D34E
tetradic
#4E31D3 #D33165 #B6D331 #31D39F
square
#4E31D3 #D33165 #B6D331 #31D39F
split-complementary
#4E31D3 #D39F31 #65D331
monochromatic
#281871 #3A23A4 #4E31D3 #7963DE #A596E9

Accessibility & contrast

On white

7.77
#4E31D3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#4E31D3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E31D3
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E31D3#FFFFFF#000000##FFFFFF
##4E31D31.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D8
Deuteranopia (green-blind)
#004CD0
Tritanopia (blue-blind)
#006181
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4e31d3;
/* rgb */ color: rgb(78, 49, 211);
/* oklch */ color: oklch(46.5% 0.230 280.8);
Tailwind
colors: {
  custom: {
    50: '#906ee2',
    500: '#4e31d3',
    950: '#000000',
  },
}
SCSS
$custom: #4e31d3;
$custom-light: #906ee2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e31d3",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 211
  },
  "hsl": {
    "h": 250.741,
    "s": 64.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.46492,
    "c": 0.2296,
    "h": 280.8
  },
  "luminance": 0.08519
}

Semantic roles & 50–950 ramp

primary
#4E31D3
secondary
#C7D48C
accent
#E840CA
background
#F9F6FE
surface
#F2ECFC
border
#CCC7D5
text
#0E0716
muted
#7E7A84

Preview Lab

Preview with #4E31D3

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

Preview Lab → · Contrast checker → · Palette generator →

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