#4E31AF#4E31AF

#4E31AF is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.0% C 0.188 H 286.1°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#4E31AF
RGBrgb(78, 49, 175)
HSLhsl(254, 56%, 44%)
HSVhsv(254, 72%, 69%)
CMYKcmyk(55.4%, 72%, 0%, 31.4%)
CIE-LABlab(31.60, 45.48, -62.64)
CIE-LCHlch(31.60, 77.41, 305.98°)
OKLaboklab(43.03% 0.0519 -0.1802)
OKLCHoklch(43.03% 0.188 286.1)
XYZxyz(11.9757, 6.9108, 41.2520)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E31AF #92AF31
analogous
#3153AF #4E31AF #8D31AF
triadic
#4E31AF #AF4E31 #31AF4E
tetradic
#4E31AF #AF3153 #92AF31 #31AF8D
square
#4E31AF #AF3153 #92AF31 #31AF8D
split-complementary
#4E31AF #AF8D31 #53AF31
monochromatic
#23164F #39247F #4E31AF #6C4FCE #947FDB

Accessibility & contrast

On white

8.82
#4E31AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#4E31AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E31AF
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E31AF#FFFFFF#000000##FFFFFF
##4E31AF1.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB3
Deuteranopia (green-blind)
#0047AD
Tritanopia (blue-blind)
#23536D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4e31af;
/* rgb */ color: rgb(78, 49, 175);
/* oklch */ color: oklch(43.0% 0.188 286.1);
Tailwind
colors: {
  custom: {
    50: '#8a6cc8',
    500: '#4e31af',
    950: '#000000',
  },
}
SCSS
$custom: #4e31af;
$custom-light: #8a6cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#4e31af",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 253.81,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43033,
    "c": 0.18752,
    "h": 286.1
  },
  "luminance": 0.06911
}

Semantic roles & 50–950 ramp

primary
#4E31AF
secondary
#B3C478
accent
#E048BD
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4E31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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