#4E31A3#4E31A3

#4E31A3 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.0% C 0.173 H 288.3°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#4E31A3
RGBrgb(78, 49, 163)
HSLhsl(255, 54%, 42%)
HSVhsv(255, 70%, 64%)
CMYKcmyk(52.1%, 69.9%, 0%, 36.1%)
CIE-LABlab(30.55, 41.92, -57.17)
CIE-LCHlch(30.55, 70.89, 306.25°)
OKLaboklab(41.95% 0.0542 -0.1641)
OKLCHoklch(41.95% 0.173 288.3)
XYZxyz(10.8491, 6.4602, 35.3185)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E31A3 #86A331
analogous
#314DA3 #4E31A3 #8731A3
triadic
#4E31A3 #A34E31 #31A34E
tetradic
#4E31A3 #A3314D #86A331 #31A387
square
#4E31A3 #A3314D #86A331 #31A387
split-complementary
#4E31A3 #A38731 #4DA331
monochromatic
#211545 #372374 #4E31A3 #6949C8 #9078D6

Accessibility & contrast

On white

9.16
#4E31A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4E31A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E31A3
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E31A3#FFFFFF#000000##FFFFFF
##4E31A31.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA6
Deuteranopia (green-blind)
#0045A1
Tritanopia (blue-blind)
#2E4E66
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e31a3;
/* rgb */ color: rgb(78, 49, 163);
/* oklch */ color: oklch(42.0% 0.173 288.3);
Tailwind
colors: {
  custom: {
    50: '#886bbf',
    500: '#4e31a3',
    950: '#000000',
  },
}
SCSS
$custom: #4e31a3;
$custom-light: #886bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e31a3",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 163
  },
  "hsl": {
    "h": 255.263,
    "s": 53.774,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41954,
    "c": 0.17285,
    "h": 288.3
  },
  "luminance": 0.06461
}

Semantic roles & 50–950 ramp

primary
#4E31A3
secondary
#ABBF71
accent
#DD4BB8
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E31A3

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

Preview Lab → · Contrast checker → · Palette generator →

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